children = new ArrayCollection(); $this->translations = new ArrayCollection(); } public function getTranslations() { return $this->translations; } public function addTranslation(CategoryTranslation $t) { if (!$this->translations->contains($t)) { $this->translations[] = $t; $t->setObject($this); } } public function getSlug() { return $this->slug; } public function getId() { return $this->id; } public function setTitle($title) { $this->title = $title; } public function getTitle() { return $this->title; } public function setDescription($description) { $this->description = $description; } public function getDescription() { return $this->description; } public function setParent($parent) { $this->parent = $parent; } public function getParent() { return $this->parent; } public function getRoot() { return $this->root; } public function getLevel() { return $this->level; } public function getChildren() { return $this->children; } public function getLeft() { return $this->lft; } public function getRight() { return $this->rgt; } public function getCreated() { return $this->created; } public function getUpdated() { return $this->updated; } public function __toString() { return $this->getTitle(); } }