31 lines
933 B
PHP
31 lines
933 B
PHP
<?php
|
|
/*
|
|
* Base class; DO NOT EDIT
|
|
*
|
|
* auto-generated by the sfDoctrine plugin
|
|
*/
|
|
class BasesfGuardGroup extends sfDoctrineRecord
|
|
{
|
|
|
|
|
|
public function setTableDefinition()
|
|
{
|
|
$this->setTableName('sf_guard_group');
|
|
|
|
$this->hasColumn('id', 'integer', 4, array ( 'primary' => true, 'autoincrement' => true,));
|
|
$this->hasColumn('created_at', 'timestamp', null, array ());
|
|
$this->hasColumn('updated_at', 'timestamp', null, array ());
|
|
$this->hasColumn('name', 'string', 255, array ( 'notnull' => true,));
|
|
$this->hasColumn('description', 'string', 4000, array ());
|
|
}
|
|
|
|
|
|
|
|
public function setUp()
|
|
{
|
|
$this->hasMany('sfGuardUser as users', array('refClass' => 'sfGuardUserGroup', 'local' => 'group_id', 'foreign' => 'user_id'));
|
|
$this->hasMany('sfGuardPermission as permissions', array('refClass' => 'sfGuardGroupPermission', 'local' => 'group_id', 'foreign' => 'permission_id'));
|
|
}
|
|
|
|
}
|