src/Action/Bulk/SetValueAction.php
protected function _bulk(Query $query = null)
    {
        $field = $this->getConfig('field');
        $value = $this->getConfig('value');
        $query->update()->set([$field => $value]);
        $statement = $query->execute();
        $statement->closeCursor();

        return (bool)$statement->rowCount();
    }
protected function _bulk(Query $query = null)
    {
        $field = $this->getConfig('field');
        $value = $this->getConfig('value');
        $query->update()->set([$field => $value]);
        $statement = $query->execute();
        $statement->closeCursor();

        return (bool)$statement->rowCount();
    }
protected function _bulk ( Query $ query = null ) { $ field = $ this -> getConfig ( 'field' ) ; $ value = $ this -> getConfig ( 'value' ) ; $ query -> update ( ) -> set ( [ $ field => $ value ] ) ; $ statement = $ query -> execute ( ) ; $ statement -> closeCursor ( ) ; return ( bool ) $ statement -> rowCount ( ) ; }
Handle a bulk value set

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