1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/models/PolicyN.php

16 lines
497 B
PHP

<?php
class PolicyN extends Doctrine_Record {
public function setTableDefinition(){
$this->setTableName('policies');
$this->hasColumn('id', 'integer', 4, array('notnull' => true, 'primary' => true, 'autoincrement' => true));
$this->hasColumn('rate_id', 'integer', 4, array ( ));
$this->hasColumn('policy_number', 'integer', 4, array ( 'unique' => true, ));
}
public function setUp(){
$this->hasOne('RateN', array('local' => 'rate_id', 'foreign' => 'id' ));
}
}