1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/models/PolicyAsset.php

17 lines
507 B
PHP
Raw Normal View History

<?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')));
}
}