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

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'));
}
}