public function addEmployeeDetailRelatedBySpouseReligionId(EmployeeDetail $l) { $this->collEmployeeDetailsRelatedBySpouseReligionId[] = $l; $l->setReligionRelatedBySpouseReligionId($this); }