Пример #1
0
 /**
  * @param Page $page
  * @return $this
  */
 public function removeChildPage(Page $page)
 {
     if ($this->childPages->contains($page)) {
         $this->childPages->removeElement($page);
         $page->setParentPage(null);
     }
     return $this;
 }
Пример #2
0
 /**
  * @param Page $page
  *
  * @return Page
  */
 public function removeChild(Page $page)
 {
     $this->children->removeElement($page);
     return $this;
 }