public function updateAll($fields, $conditions)
    {
        $target = $this->getTarget();
        $expression = $target->query()
            ->where($this->getConditions())
            ->where($conditions)
            ->clause('where');

        return $target->updateAll($fields, $expression);
    }
public function updateAll($fields, $conditions)
    {
        $target = $this->getTarget();
        $expression = $target->query()
            ->where($this->getConditions())
            ->where($conditions)
            ->clause('where');

        return $target->updateAll($fields, $expression);
    }
public function updateAll ( $ fields , $ conditions ) { $ target = $ this -> getTarget ( ) ; $ expression = $ target -> query ( ) -> where ( $ this -> getConditions ( ) ) -> where ( $ conditions ) -> clause ( 'where' ) ; return $ target -> updateAll ( $ fields , $ expression ) ; }
Proxies the update operation to the target table's updateAll method

@param array $fields A hash of field => new value.
@param mixed $conditions Conditions to be used, accepts anything Query::where()
can take.
@see \Cake\ORM\Table::updateAll()
@return int Count Returns the affected rows.
Proxies the update operation to the target table s updateAll method