13 lines
467 B
PHP
13 lines
467 B
PHP
<?php
|
|
class Policy extends Doctrine_Entity
|
|
{
|
|
public static function initMetadata($class)
|
|
{
|
|
$class->setColumn('policy_number', 'integer', 11, array('unique' => true));
|
|
$class->hasMany('PolicyAsset as PolicyAssets', array('local' => 'policy_number',
|
|
'foreign' => 'policy_number'));
|
|
$class->addIndex('policy_number_index', array('fields' => array('policy_number')));
|
|
}
|
|
|
|
}
|