public function getParent() { if ($this->parent == null) { $this->parent = Tag::getById($this->getParentId()); } return $this->parent; }