public function addObjective($num) { $objective = new Objective(); $objective->setAreaOfConcern($this->getObject()); $objective_form = new ObjectiveForm($objective); //Embedding the new concern in the container $this->embeddedForms['objectives']->embedForm($num, $objective_form); //Re-embedding the container $this->embedForm('objectives', $this->embeddedForms['objectives']); }