+ public function getProfile()
+ {
+ return $this->getGroup()->getProfile();
+ }
+
+ public function getGroup()
+ {
+ $group = new User_group();
+ $group->id = $this->group_id;
+ $group->find(true);
+ if (!$group instanceof User_group) {
+ common_log(LOG_ERR, 'User_group does not exist for Local_group: '.$this->group_id);
+ throw new NoResultException($group);
+ }
+ return $group;
+ }
+