public function addTestApplicantDetail(TestApplicantDetail $l) { $this->collTestApplicantDetails[] = $l; $l->setReligion($this); }