Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * BaseUserGroup
- *
- * This class has been auto-generated by the Doctrine ORM Framework
- *
- * @property integer $user_id
- * @property integer $group_id
- * @property Group $Group
- * @property User $User
- *
- * @package ##PACKAGE##
- * @subpackage ##SUBPACKAGE##
- * @author ##NAME## <##EMAIL##>
- * @version SVN: $Id: Builder.php 5845 2009-06-09 07:36:57Z jwage $
- */
- abstract class BaseUserGroup extends Doctrine_Record
- {
- public function setTableDefinition()
- {
- $this->setTableName('user_group');
- $this->hasColumn('user_id', 'integer', 8, array(
- 'type' => 'integer',
- 'length' => 8,
- 'unsigned' => 0,
- 'primary' => true,
- 'autoincrement' => false,
- ));
- $this->hasColumn('group_id', 'integer', 8, array(
- 'type' => 'integer',
- 'length' => 8,
- 'unsigned' => 0,
- 'primary' => true,
- 'autoincrement' => false,
- ));
- }
- public function setUp()
- {
- $this->hasOne('Group', array(
- 'local' => 'group_id',
- 'foreign' => 'id'));
- $this->hasOne('User', array(
- 'local' => 'user_id',
- 'foreign' => 'id'));
- }
- }
Add Comment
Please, Sign In to add comment