3 * Table Definition for related_group
6 class Related_group extends Managed_DataObject
9 /* the code below is auto generated do not remove the above tag */
11 public $__table = 'related_group'; // table name
12 public $group_id; // int(4) primary_key not_null
13 public $related_group_id; // int(4) primary_key not_null
14 public $created; // datetime() not_null
17 function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Related_group',$k,$v); }
19 /* the code above is auto generated do not remove the tag below */
22 public static function schemaDef()
25 // @fixme description for related_group?
27 'group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'),
28 'related_group_id' => array('type' => 'int', 'not null' => true, 'description' => 'foreign key to user_group'),
30 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'),
32 'primary key' => array('group_id', 'related_group_id'),
33 'foreign keys' => array(
34 'related_group_group_id_fkey' => array('user_group', array('group_id' => 'id')),
35 'related_group_related_group_id_fkey' => array('user_group', array('related_group_id' => 'id')),