Ejemplo n.º 1
0
 public function getModel($construct = null)
 {
     $model = parent::getModel($construct);
     if (is_array($construct) && isset($construct['parent_product_id'])) {
         $optionService = $this->getOptionService();
         $options = $optionService->getByProductId($construct['parent_product_id'], array('choices'), true, array('builder' => 1));
         $model->setOptions($options);
     }
     return $model;
 }