Exemple #1
0
 public function prepareFeature($option_value)
 {
     parent::prepareFeature($option_value);
     if (!$this->getId()) {
         $this->setValueId($option_value->getValueId())->setAppId($option_value->getAppId())->save();
     }
     return $this;
 }
Exemple #2
0
 public function prepareFeature($option_value)
 {
     $this->setValueId($option_value->getId())->save();
     parent::prepareFeature($option_value);
 }