Esempio n. 1
0
 /**
  * Store the object and its aggregates
  */
 public function store()
 {
     // store the object itself
     parent::store();
     parent::saveAggregate('CustomerSkill', 'customer_id', 'skill_id', $this->id, $this->skills);
     parent::saveComposite('Contact', 'customer_id', $this->id, $this->contacts);
 }
Esempio n. 2
0
 public function store()
 {
     parent::store();
     //parent::saveComposite('endereco','idpessoa',$this->idpessoa,$this->enderecos);
     parent::saveComposite('contato', 'idpessoa', $this->idpessoa, $this->contatos);
 }
 public function onAfterStore($object)
 {
     parent::saveComposite('telefone', 'clientes_id', $object->id, $this->telefones);
     parent::saveComposite('email', 'clientes_id', $object->id, $this->emails);
     return $object;
 }
Esempio n. 4
0
 /**
  * Store the object and its aggregates
  */
 public function store()
 {
     // store the object itself
     parent::store();
     parent::saveComposite('Contact', 'customer_id', $this->id, $this->contacts);
 }