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

/**
 * BaseSF_GUARD_FORGOT_PASSWORD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $user_id
 * @property string $unique_key
 * @property timestamp $expires_at
 * @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                   getUniqueKey()     Returns the current record's "unique_key" value
 * @method timestamp                getExpiresAt()     Returns the current record's "expires_at" 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_FORGOT_PASSWORD setId()            Sets the current record's "id" value
 * @method SF_GUARD_FORGOT_PASSWORD setUserId()        Sets the current record's "user_id" value
 * @method SF_GUARD_FORGOT_PASSWORD setUniqueKey()     Sets the current record's "unique_key" value
 * @method SF_GUARD_FORGOT_PASSWORD setExpiresAt()     Sets the current record's "expires_at" value
 * @method SF_GUARD_FORGOT_PASSWORD setCreatedAt()     Sets the current record's "created_at" value
 * @method SF_GUARD_FORGOT_PASSWORD setUpdatedAt()     Sets the current record's "updated_at" value
 * @method SF_GUARD_FORGOT_PASSWORD setSFGUARDUSER()   Sets the current record's "SF_GUARD_USER" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseSF_GUARD_FORGOT_PASSWORD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('SF_GUARD_FORGOT_PASSWORD');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('user_id', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('unique_key', 'string', 255, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 255,
             ));
        $this->hasColumn('expires_at', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $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'));
    }
}