/** * 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); }
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; }
/** * Store the object and its aggregates */ public function store() { // store the object itself parent::store(); parent::saveComposite('Contact', 'customer_id', $this->id, $this->contacts); }