/** * New function needed to make the hydrator happy * * @param Collections\Collection $accessCollection */ public function addAccess(Collections\Collection $accessCollection) { foreach ($accessCollection as $access) { $access->contact = $this; $this->access->add($access); } }