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

13 lines
476 B
PHP

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