public $created; // datetime not_null default_0000-00-00%2000%3A00%3A00
public $modified; // timestamp not_null default_CURRENT_TIMESTAMP
- /* Static get */
- function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Local_group',$k,$v); }
-
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
);
}
+ 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;
+ }
+
function setNickname($nickname)
{
$this->decache();