1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/sandbox/models/generated/BaseContact.class.php

32 lines
651 B
PHP
Raw Normal View History

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
}
}