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