public function setParent(Page $parent)
    {
        $this->parent = $parent;

        $this->parentId = $parent->getPageId();
    }
public function setParent(Page $parent)
    {
        $this->parent = $parent;

        $this->parentId = $parent->getPageId();
    }
public function setParent ( Page $ parent ) { $ this -> parent = $ parent ; $ this -> parentId = $ parent -> getPageId ( ) ; }
Set the parent page.  Used to generate breadcrumbs or navigation

@param Page $parent Parent Page Entity

@return void
Set the parent page . Used to generate breadcrumbs or navigation