1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/models/InheritanceUser.php

16 lines
528 B
PHP
Raw Normal View History

2007-09-13 00:50:39 +04:00
<?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'));
}
}