2007-10-15 23:34:48 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class has been auto-generated by the Doctrine ORM Framework
|
|
|
|
*/
|
|
|
|
abstract class BaseUser extends Doctrine_Record
|
|
|
|
{
|
|
|
|
|
|
|
|
public function setTableDefinition()
|
|
|
|
{
|
|
|
|
$this->setTableName('user');
|
|
|
|
$this->hasColumn('username', 'string', 255);
|
2007-10-16 04:48:09 +04:00
|
|
|
$this->hasColumn('contact_id', 'integer', 11);
|
2007-10-15 23:34:48 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
$this->hasOne('Contact', array('local' => 'contact_id',
|
|
|
|
'foreign' => 'id'));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|