<?php

/**
 * BaseSelectedGroupField
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                  $groupFieldId                                    Type: integer, primary key
 * @property int                  $summaryDisplayFieldId                           Type: integer, primary key
 * @property int                  $reportId                                        Type: integer, primary key
 * @property GroupField           $GroupField                                      
 * @property Report               $Report                                          
 * @property SummaryDisplayField  $SummaryDisplayField                             
 *  
 * @method int                    getGroupfieldid()                                Type: integer, primary key
 * @method int                    getSummarydisplayfieldid()                       Type: integer, primary key
 * @method int                    getReportid()                                    Type: integer, primary key
 * @method GroupField             getGroupField()                                  
 * @method Report                 getReport()                                      
 * @method SummaryDisplayField    getSummaryDisplayField()                         
 *  
 * @method SelectedGroupField     setGroupfieldid(int $val)                        Type: integer, primary key
 * @method SelectedGroupField     setSummarydisplayfieldid(int $val)               Type: integer, primary key
 * @method SelectedGroupField     setReportid(int $val)                            Type: integer, primary key
 * @method SelectedGroupField     setGroupField(GroupField $val)                   
 * @method SelectedGroupField     setReport(Report $val)                           
 * @method SelectedGroupField     setSummaryDisplayField(SummaryDisplayField $val) 
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseSelectedGroupField extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_selected_group_field');
        $this->hasColumn('group_field_id as groupFieldId', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('summary_display_field_id as summaryDisplayFieldId', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('report_id as reportId', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('GroupField', array(
             'local' => 'group_field_id',
             'foreign' => 'groupFieldId',
             'onDelete' => 'cascade'));

        $this->hasOne('Report', array(
             'local' => 'report_id',
             'foreign' => 'reportId',
             'onDelete' => 'cascade'));

        $this->hasOne('SummaryDisplayField', array(
             'local' => 'summary_display_field_id',
             'foreign' => 'summaryDisplayFieldId',
             'onDelete' => 'cascade'));
    }
}