1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/models/InheritanceDeal.php

16 lines
514 B
PHP
Raw Normal View History

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