<?php

/**
 * BaseSelectedDisplayFieldGroup
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $report_id
 * @property int $display_field_group_id
 * @property Report $Report
 * @property DisplayFieldGroup $DisplayFieldGroup
 * 
 * @method integer                   getId()                     Returns the current record's "id" value
 * @method integer                   getReportId()               Returns the current record's "report_id" value
 * @method int                       getDisplayFieldGroupId()    Returns the current record's "display_field_group_id" value
 * @method Report                    getReport()                 Returns the current record's "Report" value
 * @method DisplayFieldGroup         getDisplayFieldGroup()      Returns the current record's "DisplayFieldGroup" value
 * @method SelectedDisplayFieldGroup setId()                     Sets the current record's "id" value
 * @method SelectedDisplayFieldGroup setReportId()               Sets the current record's "report_id" value
 * @method SelectedDisplayFieldGroup setDisplayFieldGroupId()    Sets the current record's "display_field_group_id" value
 * @method SelectedDisplayFieldGroup setReport()                 Sets the current record's "Report" value
 * @method SelectedDisplayFieldGroup setDisplayFieldGroup()      Sets the current record's "DisplayFieldGroup" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseSelectedDisplayFieldGroup extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_selected_display_field_group');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'unsigned' => true,
             'primary' => true,
             ));
        $this->hasColumn('report_id', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             ));
        $this->hasColumn('display_field_group_id', 'int', null, array(
             'type' => 'int',
             'unsigned' => true,
             'notnull' => true,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('Report', array(
             'local' => 'report_id',
             'foreign' => 'reportId',
             'onDelete' => 'cascade'));

        $this->hasOne('DisplayFieldGroup', array(
             'local' => 'display_field_group_id',
             'foreign' => 'id',
             'onDelete' => 'cascade'));
    }
}