public function removeManufacturer(PartManufacturer $partManufacturer) { $partManufacturer->setPart(null); $this->manufacturers->removeElement($partManufacturer); }