1
0
mirror of synced 2024-12-16 08:06:02 +03:00
doctrine2/website/lib/model/doctrine/sfGuardDoctrinePlugin/generated/BasesfGuardUserPermission.class.php

30 lines
800 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 BasesfGuardUserPermission extends sfDoctrineRecord
{
public function setTableDefinition()
{
$this->setTableName('sf_guard_user_permission');
$this->hasColumn('created_at', 'timestamp', null, array ());
$this->hasColumn('updated_at', 'timestamp', null, array ());
$this->hasColumn('user_id', 'integer', 4, array ( 'primary' => true,));
$this->hasColumn('permission_id', 'integer', 4, array ( 'primary' => true,));
}
public function setUp()
{
$this->hasOne('sfGuardUser as sfGuardUser', array('local' => 'user_id', 'foreign' => 'id'));
$this->hasOne('sfGuardPermission as sfGuardPermission', array('local' => 'permission_id', 'foreign' => 'id'));
}
}