2007-10-18 04:04:28 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class has been auto-generated by the Doctrine ORM Framework
|
|
|
|
*/
|
|
|
|
abstract class BaseUserGroup extends Doctrine_Record
|
|
|
|
{
|
|
|
|
|
|
|
|
public function setTableDefinition()
|
|
|
|
{
|
|
|
|
$this->setTableName('user_group');
|
2007-10-19 22:11:45 +00:00
|
|
|
$this->hasColumn('user_id', 'integer', 11, array('primary' => true));
|
|
|
|
$this->hasColumn('group_id', 'integer', 11, array('primary' => true));
|
2007-10-18 04:04:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
$this->hasOne('User', array('local' => 'user_id',
|
|
|
|
'foreign' => 'id'));
|
|
|
|
|
|
|
|
$this->hasOne('Group', array('local' => 'group_id',
|
|
|
|
'foreign' => 'id'));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|