예제 #1
0
 public function updateOneRow($data)
 {
     $parentModel = new Default_Model_ConceptualDomain();
     $where = $this->getAdapter()->quoteInto($this->_primary . ' = ?', $data['idNECD']);
     $this->update(array('Description' => $data['Description']), $where);
     unset($data['Description']);
     unset($data['idNECD']);
     $parentModel->updateOneRow($data);
 }
예제 #2
0
 public function updateOneRow($data)
 {
     $ecdvm = new Default_Model_EnumeratedConceptualDomainValueMeaning();
     $ecdvm->deleteValues($data[$this->_primary]);
     foreach ($data['idVM'] as $key => $v) {
         $ecdvm->insert(array('idECD' => $data[$this->_primary], 'idVM' => $v));
     }
     unset($data[$this->_primary]);
     unset($data['idVM']);
     $p = new Default_Model_ConceptualDomain();
     $p->updateOneRow($data);
 }