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); }
/** * 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); }
/** * 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); }