1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/tests_old/models/PolicyAsset.php
2008-02-08 17:41:01 +00:00

13 lines
480 B
PHP

<?php
class PolicyAsset extends Doctrine_Record
{
public static function initMetadata($class)
{
$class->setColumn('policy_number', 'integer', 11);
$class->setColumn('value', 'float', 10, array ('notblank' => true,));
$class->hasOne('Policy', array('foreign' => 'policy_number',
'local' => 'policy_number'));
$class->addIndex('policy_number_index', array('fields' => array('policy_number')));
}
}