17 lines
507 B
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')));
|
|
}
|
|
}
|