1
0
mirror of synced 2025-01-24 09:11:40 +03:00
doctrine2/sandbox/models/generated/BaseUserGroup.class.php

31 lines
615 B
PHP

<?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');
$this->hasColumn('user_id', 'integer', 11, array('primary' => true));
$this->hasColumn('group_id', 'integer', 11, array('primary' => true));
}
public function setUp()
{
$this->hasOne('User', array('local' => 'user_id',
'foreign' => 'id'));
$this->hasOne('Group', array('local' => 'group_id',
'foreign' => 'id'));
}
}