public function addEmployeeDetail(EmployeeDetail $l) { $this->collEmployeeDetails[] = $l; $l->setEmployeeLevel($this); }