<?php

/**
 * BaseAvailableDisplayField
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $reportGroupId
 * @property integer $displayFieldId
 * @property ReportGroup $ReportGroup
 * @property DisplayField $DisplayField
 * 
 * @method integer               getReportGroupId()  Returns the current record's "reportGroupId" value
 * @method integer               getDisplayFieldId() Returns the current record's "displayFieldId" value
 * @method ReportGroup           getReportGroup()    Returns the current record's "ReportGroup" value
 * @method DisplayField          getDisplayField()   Returns the current record's "DisplayField" value
 * @method AvailableDisplayField setReportGroupId()  Sets the current record's "reportGroupId" value
 * @method AvailableDisplayField setDisplayFieldId() Sets the current record's "displayFieldId" value
 * @method AvailableDisplayField setReportGroup()    Sets the current record's "ReportGroup" value
 * @method AvailableDisplayField setDisplayField()   Sets the current record's "DisplayField" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseAvailableDisplayField extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_available_display_field');
        $this->hasColumn('report_group_id as reportGroupId', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('display_field_id as displayFieldId', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('ReportGroup', array(
             'local' => 'report_group_id',
             'foreign' => 'reportGroupId',
             'onDelete' => 'cascade'));

        $this->hasOne('DisplayField', array(
             'local' => 'display_field_id',
             'foreign' => 'displayFieldId'));
    }
}