PartKeepr\ProjectBundle\Entity\Project::removePart PHP Method

removePart() public method

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