Esempio n. 1
0
 /**
  * @param \AppAnest\Model\legalentity $model
  */
 public function preInsert(\AppAnest\Model\legalentity &$model)
 {
     $person = new \AppAnest\Coach\person();
     $person->getStore()->getModel()->setTypeperson('L');
     $person->getStore()->getModel()->getSubmit()->setRowValue('typeperson', 'L');
     $person->update();
     $id = $person->getStore()->getModel()->getId();
     $model->setId($id);
     $model->getSubmit()->setRowValue('id', $id);
 }