31 lines
854 B
PHP
31 lines
854 B
PHP
<?php
|
|
/*
|
|
* Base class; DO NOT EDIT
|
|
*
|
|
* auto-generated by the sfDoctrine plugin
|
|
*/
|
|
class BasesfGuardRememberKey extends sfDoctrineRecord
|
|
{
|
|
|
|
|
|
public function setTableDefinition()
|
|
{
|
|
$this->setTableName('sf_guard_remember_key');
|
|
|
|
$this->hasColumn('id', 'integer', 4, array ( 'primary' => true, 'autoincrement' => true,));
|
|
$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('remember_key', 'string', 32, array ());
|
|
$this->hasColumn('ip_address', 'string', 15, array ( 'primary' => true,));
|
|
}
|
|
|
|
|
|
|
|
public function setUp()
|
|
{
|
|
$this->hasOne('sfGuardUser as user', array('local' => 'user_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
|
|
}
|
|
|
|
}
|