Crud\Action\Bulk\SetValueAction::_bulk PHP Method

_bulk() protected method

Handle a bulk value set
protected _bulk ( Query $query = null ) : boolean
$query Cake\ORM\Query The query to act upon
return boolean
    protected function _bulk(Query $query = null)
    {
        $field = $this->config('field');
        $value = $this->config('value');
        $query->update()->set([$field => $value]);
        $statement = $query->execute();
        $statement->closeCursor();
        return $statement->rowCount();
    }