public function update($values, $conditions)
    {
        $result = false;
        if (!empty($conditions)) {
            $this->getCommandChain()->disable();
            $result = $this->getStore()->update($this, $conditions, $values);
            $this->getCommandChain()->enable();
        }

        return $result;
    }
public function update($values, $conditions)
    {
        $result = false;
        if (!empty($conditions)) {
            $this->getCommandChain()->disable();
            $result = $this->getStore()->update($this, $conditions, $values);
            $this->getCommandChain()->enable();
        }

        return $result;
    }
public function update ( $ values , $ conditions ) { $ result = false ; if ( ! empty ( $ conditions ) ) { $ this -> getCommandChain ( ) -> disable ( ) ; $ result = $ this -> getStore ( ) -> update ( $ this , $ conditions , $ values ) ; $ this -> getCommandChain ( ) -> enable ( ) ; } return $ result ; }
Updates a set of entities without instantiating them.

This method disables the chain in order to ensure the query is not modified by the
behaviors for unexpected results

If a boolean value true is passed as condition then all the records within the repository is
updated

@param array|string             $values     The update values. Can be an array of key/value pairs or just an update string
@param array|AnDomainQuery|bool $conditions An array of conditions or a domain query or a boolean vaule.
Updates a set of entities without instantiating them .