/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
-
-
-
-
-
+
function owner()
{
$p = DB_DataObject::Factory($this->tableName());
");
}
+ $cg = DB_DataObject::Factory('core_group')->tableName();
+ $cgm = DB_DataObject::Factory('core_group_member')->tableName();
+
+ $this->selectAdd("
+ (
+ SELECT GROUP_CONCAT(CONCAT_WS('\"', ${cgm}.group_id), '\"')
+ FROM
+ {$cgm}
+ LEFT JOIN
+ {$this}
+ ON
+ {$this->tableName()}.id = {$cgm}.user_id
+ AND
+ ${cp}.active = 1
+ ) AS group_membership_list
+ ");
+
}