/** * @param Page $page * @return $this */ public function removeChildPage(Page $page) { if ($this->childPages->contains($page)) { $this->childPages->removeElement($page); $page->setParentPage(null); } return $this; }
/** * @param Page $page * * @return Page */ public function removeChild(Page $page) { $this->children->removeElement($page); return $this; }