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

/**
 * BaseSF_GUARD_REMEMBER_KEY
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $user_id
 * @property string $remember_key
 * @property string $ip_address
 * @property timestamp $created_at
 * @property timestamp $updated_at
 * @property SF_GUARD_USER $SF_GUARD_USER
 * 
 * @method integer               getId()            Returns the current record's "id" value
 * @method integer               getUserId()        Returns the current record's "user_id" value
 * @method string                getRememberKey()   Returns the current record's "remember_key" value
 * @method string                getIpAddress()     Returns the current record's "ip_address" 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_USER         getSFGUARDUSER()   Returns the current record's "SF_GUARD_USER" value
 * @method SF_GUARD_REMEMBER_KEY setId()            Sets the current record's "id" value
 * @method SF_GUARD_REMEMBER_KEY setUserId()        Sets the current record's "user_id" value
 * @method SF_GUARD_REMEMBER_KEY setRememberKey()   Sets the current record's "remember_key" value
 * @method SF_GUARD_REMEMBER_KEY setIpAddress()     Sets the current record's "ip_address" value
 * @method SF_GUARD_REMEMBER_KEY setCreatedAt()     Sets the current record's "created_at" value
 * @method SF_GUARD_REMEMBER_KEY setUpdatedAt()     Sets the current record's "updated_at" value
 * @method SF_GUARD_REMEMBER_KEY setSFGUARDUSER()   Sets the current record's "SF_GUARD_USER" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseSF_GUARD_REMEMBER_KEY extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('SF_GUARD_REMEMBER_KEY');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('user_id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('remember_key', 'string', 32, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 32,
             ));
        $this->hasColumn('ip_address', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $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_USER', array(
             'local' => 'user_id',
             'foreign' => 'id'));
    }
}