/** * New function needed to make the hydrator happy * * @param Collections\Collection $photoCollection */ public function removePhoto(Collections\Collection $photoCollection) { foreach ($photoCollection as $single) { $this->photo->removeElement($single); } }