2007-10-15 23:34:48 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class has been auto-generated by the Doctrine ORM Framework
|
|
|
|
*/
|
|
|
|
abstract class BaseContact extends Doctrine_Record
|
|
|
|
{
|
|
|
|
|
|
|
|
public function setTableDefinition()
|
|
|
|
{
|
2007-10-18 08:03:33 +04:00
|
|
|
$this->setTableName('contact');
|
|
|
|
$this->hasColumn('id', 'integer', 11, array('primary' => true,
|
|
|
|
'autoincrement' => true));
|
|
|
|
$this->hasColumn('name', 'string', 255);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-15 23:34:48 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
public function setUp()
|
|
|
|
{
|
2007-10-18 08:03:33 +04:00
|
|
|
$this->hasOne('Adult', array('local' => 'id',
|
|
|
|
'foreign' => 'contact_id'));
|
|
|
|
|
|
|
|
$this->hasOne('User', array('local' => 'id',
|
|
|
|
'foreign' => 'contact_id'));
|
|
|
|
|
2007-10-15 23:34:48 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|