protected function executeDao(Dao $dao) { $values = array(); //first update value foreach ($this->_update_fields as $value) { $values[] = $value; } foreach ($this->_increament_fields as $field_name => $options) { $values[] = $options['value']; } //then where $values = array_merge($values, $this->getWhereValues()); return $dao->execute($values); }
protected function executeDao(Dao $dao) { $values = $this->getWhereValues(); return $dao->execute($values); }