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