I am trying to set up some embedded forms using this guide. I have two models set up in my application, Lesson and Evaluation.
Each Lesson can have multiple Evaluati
In your class Lesson entity add:
/**
* Add evaluations
*
* @param \DS\LessonBundle\Entity\Evaluation $evaluations
* @return Lesson
*/
public function addEvaluation(\LessonBundle\Entity\Evaluation $evaluations)
{
$this->evaluations[] = $evaluations;
$evaluations->setLesson($this);
return $this;
}