Crud\Action\Bulk\DeleteAction::_bulk PHP Méthode

_bulk() protected méthode

Handle a bulk delete
protected _bulk ( Query $query = null ) : boolean
$query Cake\ORM\Query The query to act upon
Résultat boolean
    protected function _bulk(Query $query = null)
    {
        $query = $query->delete();
        $statement = $query->execute();
        $statement->closeCursor();
        return $statement->rowCount();
    }