/** * Gets the parent category. * * @return \TYPO3\CMS\Extbase\Domain\Model\Category|NULL the parent category * @api */ public function getParent() { if ($this->parent instanceof \TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy) { $this->parent->_loadRealInstance(); } return $this->parent; }