/** * Removes a part manufacturer * * @param PartManufacturer $partManufacturer A part manufacturer to remove */ public function removeManufacturer(PartManufacturer $partManufacturer) { $partManufacturer->setPart(null); $this->manufacturers->removeElement($partManufacturer); }