30 lines
826 B
PHP
30 lines
826 B
PHP
<?php
|
|
/*
|
|
* Base class; DO NOT EDIT
|
|
*
|
|
* auto-generated by the sfDoctrine plugin
|
|
*/
|
|
class BasesfGuardGroupPermission extends sfDoctrineRecord
|
|
{
|
|
|
|
|
|
public function setTableDefinition()
|
|
{
|
|
$this->setTableName('sf_guard_group_permission');
|
|
|
|
$this->hasColumn('created_at', 'timestamp', null, array ());
|
|
$this->hasColumn('updated_at', 'timestamp', null, array ());
|
|
$this->hasColumn('group_id', 'integer', 4, array ( 'primary' => true,));
|
|
$this->hasColumn('permission_id', 'integer', 4, array ( 'notnull' => true, 'primary' => true,));
|
|
}
|
|
|
|
|
|
|
|
public function setUp()
|
|
{
|
|
$this->hasOne('sfGuardGroup as sfGuardGroup', array('local' => 'group_id', 'foreign' => 'id'));
|
|
$this->hasOne('sfGuardPermission as sfGuardPermission', array('local' => 'permission_id', 'foreign' => 'id'));
|
|
}
|
|
|
|
}
|