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

17 lines
507 B
PHP

<?php
class PolicyAsset extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('policy_number', 'integer', 11);
$this->hasColumn('value', 'float', 10, array ('notblank' => true,));
}
public function setUp()
{
$this->hasOne('Policy', array('foreign' => 'policy_number',
'local' => 'policy_number'));
$this->index('policy_number_index', array('fields' => array('policy_number')));
}
}