Exemplo n.º 1
0
 public function save(Default_Model_ProductGroups $value)
 {
     $data = array('idProduct' => $value->getIdProduct(), 'idGroup' => $value->getIdGroup(), 'repeated' => $value->getRepeated(), 'order' => $value->getOrder() != NULL ? $value->getOrder() : 0, 'deleted' => '0');
     //if (null === ($id = $value->getId()))
     //{
     $id = $this->getDbTable()->insert($data);
     // }
     return $id;
 }