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