Ejemplo n.º 1
0
 /**
  * @param bool $autodate
  * @param bool $nullValues
  * @return bool
  */
 public function add($autodate = true, $nullValues = false)
 {
     if ($this->position <= 0) {
         $this->position = FeatureValue::getHigherPosition($this->id_feature) + 1;
     }
     return parent::add($autodate, $nullValues);
 }
 public function add($autodate = true, $null_values = false)
 {
     if ($this->position <= 0) {
         $this->position = FeatureValue::getHigherPosition($this->id_feature) + 1;
     }
     $return = parent::add($autodate, $null_values);
     if ($return) {
         Hook::exec('actionFeatureValueSave', array('id_feature_value' => $this->id));
     }
     return $return;
 }