Пример #1
0
 public function store()
 {
     //sobrescrito!
     parent::store();
     parent::saveAggregate('AlunoTurma', 'turma_id', 'matricula_aluno', $this->id, $this->alunos);
     parent::saveAggregate('TurmaDisciplina', 'turma_id', 'disciplina_id', $this->id, $this->disciplinas);
 }
Пример #2
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);
 }
Пример #3
0
 /**
  * Store the object and its aggregates
  */
 public function store()
 {
     // store the object itself
     parent::store();
     parent::saveAggregate('PedidosProdutos', 'pedidos_id', 'produtos_id', $this->id, $this->produtoss);
 }