16 lines
528 B
PHP
16 lines
528 B
PHP
<?php
|
|
class InheritanceUser extends Doctrine_Record
|
|
{
|
|
public function setTableDefinition()
|
|
{
|
|
$this->setTableName('inheritance_user');
|
|
|
|
$this->hasColumn('id', 'integer', 4, array ( 'primary' => true, 'autoincrement' => true,));
|
|
$this->hasColumn('username', 'string', 128, array ( 'notnull' => true,));
|
|
}
|
|
|
|
public function setUp()
|
|
{
|
|
$this->hasMany('InheritanceDeal as Deals', array('refClass' => 'InheritanceDealUser', 'local' => 'user_id', 'foreign' => 'entity_id'));
|
|
}
|
|
} |