public function removeSubForum($subForum) { $this->subForum->remove($subForum); $subForum->setForum(null); }