31 lines
578 B
PHP
31 lines
578 B
PHP
<?php
|
|
|
|
/**
|
|
* This class has been auto-generated by the Doctrine ORM Framework
|
|
*/
|
|
abstract class BaseDog extends Doctrine_Record
|
|
{
|
|
|
|
public function setTableDefinition()
|
|
{
|
|
$this->setTableName('dog');
|
|
$this->hasColumn('id', 'integer', 11, array('primary' => true,
|
|
'autoincrement' => true));
|
|
|
|
$this->hasColumn('name', 'string', 255);
|
|
$this->hasColumn('user_id', 'integer', 11);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
public function setUp()
|
|
{
|
|
$this->hasOne('User', array('local' => 'user_id',
|
|
'foreign' => 'id'));
|
|
|
|
}
|
|
|
|
} |