src/Action/Bulk/DeleteAction.php
protected function _bulk(Query $query = null)
    {
        $query = $query->delete();
        $statement = $query->execute();
        $statement->closeCursor();

        return (bool)$statement->rowCount();
    }
protected function _bulk(Query $query = null)
    {
        $query = $query->delete();
        $statement = $query->execute();
        $statement->closeCursor();

        return (bool)$statement->rowCount();
    }
protected function _bulk ( Query $ query = null ) { $ query = $ query -> delete ( ) ; $ statement = $ query -> execute ( ) ; $ statement -> closeCursor ( ) ; return ( bool ) $ statement -> rowCount ( ) ; }
Handle a bulk delete

@param \Cake\ORM\Query|null $query The query to act upon
@return bool
Handle a bulk delete