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