BasesfGuardUserGroup.class.php 770 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<?php
/*
 * Base class; DO NOT EDIT
 *
 * auto-generated by the sfDoctrine plugin
 */
class BasesfGuardUserGroup extends sfDoctrineRecord
{
  
  
  public function setTableDefinition()
  {
    $this->setTableName('sf_guard_user_group');

    $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('user_id', 'integer', 4, array (  'primary' => true,));
  }
  

  
  public function setUp()
  {
    $this->hasOne('sfGuardGroup as sfGuardGroup', array('local' => 'group_id', 'foreign' => 'id'));
    $this->hasOne('sfGuardUser as sfGuardUser', array('local' => 'user_id', 'foreign' => 'id'));
  }
  
}