function create_role($name, $parent_id = 0) { $roles = new DxRoles(); $roles->setName($name); $roles->setParentId($parent_id); $this->em->persist($roles); $this->em->flush(); return $roles->getId(); }
public function getName() { $this->__load(); return parent::getName(); }