protected function _sync($fields, $conditions, $scope = null)
    {
        if ($scope) {
            $conditions = array_merge($conditions, $scope);
        }

        return $this->_table->updateAll($fields, $conditions);
    }
protected function _sync($fields, $conditions, $scope = null)
    {
        if ($scope) {
            $conditions = array_merge($conditions, $scope);
        }

        return $this->_table->updateAll($fields, $conditions);
    }
protected function _sync ( $ fields , $ conditions , $ scope = null ) { if ( $ scope ) { $ conditions = array_merge ( $ conditions , $ scope ) ; } return $ this -> _table -> updateAll ( $ fields , $ conditions ) ; }
Auxiliary function used to alter the value of order fields by a certain
amount that match the passed conditions.

@param array $fields Fields to update.
@param array $conditions Conditions for matching rows.
@param array $scope Grouping scope that will be added to coditions.

@return int Count of rows updated.
Auxiliary function used to alter the value of order fields by a certain amount that match the passed conditions .