parts = new ArrayCollection(); } /** * Get models. * * @return ArrayCollection */ public function getParts() { return $this->parts; } /** * @param Part $part * * @return Keyword */ public function addPart(Part $part) { $this->parts->add($part); return $this; } /** * @param Part $part * * @return Keyword */ public function removeModel(Part $part) { $this->parts->removeElement($part); return $this; } }