1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/models/InheritanceDeal.php
2007-09-12 20:50:39 +00:00

16 lines
514 B
PHP

<?php
class InheritanceDeal extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('inheritance_deal');
$this->hasColumn('id', 'integer', 4, array ( 'primary' => true, 'autoincrement' => true,));
$this->hasColumn('name', 'string', 255, array ());
}
public function setUp()
{
$this->hasMany('InheritanceUser as Users', array('refClass' => 'InheritanceDealUser', 'local' => 'entity_id', 'foreign' => 'user_id'));
}
}