<?php

/**
 * BaseSelectedDisplayField
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                   $id                                Type: integer, primary key
 * @property int                   $displayFieldId                    Type: integer, primary key
 * @property int                   $reportId                          Type: integer, primary key
 * @property Report                $Report                            
 * @property DisplayField          $DisplayField                      
 *  
 * @method int                     getId()                            Type: integer, primary key
 * @method int                     getDisplayfieldid()                Type: integer, primary key
 * @method int                     getReportid()                      Type: integer, primary key
 * @method Report                  getReport()                        
 * @method DisplayField            getDisplayField()                  
 *  
 * @method SelectedDisplayField    setId(int $val)                    Type: integer, primary key
 * @method SelectedDisplayField    setDisplayfieldid(int $val)        Type: integer, primary key
 * @method SelectedDisplayField    setReportid(int $val)              Type: integer, primary key
 * @method SelectedDisplayField    setReport(Report $val)             
 * @method SelectedDisplayField    setDisplayField(DisplayField $val) 
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseSelectedDisplayField extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_selected_display_field');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             ));
        $this->hasColumn('display_field_id as displayFieldId', '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('Report', array(
             'local' => 'report_id',
             'foreign' => 'reportId',
             'onDelete' => 'cascade'));

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