1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/models/Policy.php

16 lines
494 B
PHP

<?php
class Policy extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('policy_number', 'integer', 11, array('unique' => true));
}
public function setUp()
{
$this->hasMany('PolicyAsset as PolicyAssets', array('local' => 'policy_number',
'foreign' => 'policy_number'));
$this->index('policy_number_index', array('fields' => array('policy_number')));
}
}