1
0
mirror of synced 2025-01-09 18:47:10 +03:00
doctrine2/sandbox/models/generated/BaseGroup.class.php

31 lines
694 B
PHP
Raw Normal View History

<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract class BaseGroup extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('groups');
$this->hasColumn('id', 'integer', 11, array('notnull' => true,
'primary' => true,
'autoincrement' => true));
$this->hasColumn('name', 'string', 255);
}
public function setUp()
{
$this->hasMany('User as Users', array('refClass' => 'UserGroup',
'local' => 'group_id',
'foreign' => 'user_id'));
}
}