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