<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('SF_GUARD_USER_GROUP', 'doctrine');

/**
 * BaseSF_GUARD_USER_GROUP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $user_id
 * @property integer $group_id
 * @property timestamp $created_at
 * @property timestamp $updated_at
 * @property SF_GUARD_GROUP $SF_GUARD_GROUP
 * @property SF_GUARD_USER $SF_GUARD_USER
 * 
 * @method integer             getUserId()         Returns the current record's "user_id" value
 * @method integer             getGroupId()        Returns the current record's "group_id" value
 * @method timestamp           getCreatedAt()      Returns the current record's "created_at" value
 * @method timestamp           getUpdatedAt()      Returns the current record's "updated_at" value
 * @method SF_GUARD_GROUP      getSFGUARDGROUP()   Returns the current record's "SF_GUARD_GROUP" value
 * @method SF_GUARD_USER       getSFGUARDUSER()    Returns the current record's "SF_GUARD_USER" value
 * @method SF_GUARD_USER_GROUP setUserId()         Sets the current record's "user_id" value
 * @method SF_GUARD_USER_GROUP setGroupId()        Sets the current record's "group_id" value
 * @method SF_GUARD_USER_GROUP setCreatedAt()      Sets the current record's "created_at" value
 * @method SF_GUARD_USER_GROUP setUpdatedAt()      Sets the current record's "updated_at" value
 * @method SF_GUARD_USER_GROUP setSFGUARDGROUP()   Sets the current record's "SF_GUARD_GROUP" value
 * @method SF_GUARD_USER_GROUP setSFGUARDUSER()    Sets the current record's "SF_GUARD_USER" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseSF_GUARD_USER_GROUP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('SF_GUARD_USER_GROUP');
        $this->hasColumn('user_id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('group_id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('created_at', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('updated_at', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('SF_GUARD_GROUP', array(
             'local' => 'group_id',
             'foreign' => 'id'));

        $this->hasOne('SF_GUARD_USER', array(
             'local' => 'user_id',
             'foreign' => 'id'));
    }
}