/** * Removes a Project Part * * @param ProjectPart $projectPart A part to remove */ public function removePart($projectPart) { $projectPart->setProject(null); $this->parts->removeElement($projectPart); }