1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/website/lib/model/doctrine/sfGuardDoctrinePlugin/generated/BasesfGuardPermission.class.php

31 lines
943 B
PHP
Raw Normal View History

2007-09-01 03:41:48 +04:00
<?php
/*
* Base class; DO NOT EDIT
*
* auto-generated by the sfDoctrine plugin
*/
class BasesfGuardPermission extends sfDoctrineRecord
{
public function setTableDefinition()
{
$this->setTableName('sf_guard_permission');
$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' => 'sfGuardUserPermission', 'local' => 'permission_id', 'foreign' => 'user_id'));
$this->hasMany('sfGuardGroup as groups', array('refClass' => 'sfGuardGroupPermission', 'local' => 'permission_id', 'foreign' => 'group_id'));
}
}