children = new ArrayCollection(); } /** * @return UserGroup */ public function getParent() { return $this->parent; } /** * @param UserGroup $parent * @return Role */ public function setParent(UserGroup $parent) { $this->parent = $parent; return $this; } public function getRoleId() { return $this->role; } protected function setRoleId($roleId) { $this->role = (string)$roleId; return $this; } public function __toString() { return $this->getRoleId(); } public function getId() { return $this->id; } public function getLeft() { return $this->lft; } public function getRight() { return $this->rgt; } public function getLevel() { return $this->lvl; } }