<?php

/**
 * BaseSelectedFilterField
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $reportId
 * @property integer $filterFieldId
 * @property integer $filterFieldOrder
 * @property string $value1
 * @property string $value2
 * @property string $whereCondition
 * @property string $type
 * @property Report $Report
 * @property FilterField $FilterField
 * 
 * @method integer             getReportId()         Returns the current record's "reportId" value
 * @method integer             getFilterFieldId()    Returns the current record's "filterFieldId" value
 * @method integer             getFilterFieldOrder() Returns the current record's "filterFieldOrder" value
 * @method string              getValue1()           Returns the current record's "value1" value
 * @method string              getValue2()           Returns the current record's "value2" value
 * @method string              getWhereCondition()   Returns the current record's "whereCondition" value
 * @method string              getType()             Returns the current record's "type" value
 * @method Report              getReport()           Returns the current record's "Report" value
 * @method FilterField         getFilterField()      Returns the current record's "FilterField" value
 * @method SelectedFilterField setReportId()         Sets the current record's "reportId" value
 * @method SelectedFilterField setFilterFieldId()    Sets the current record's "filterFieldId" value
 * @method SelectedFilterField setFilterFieldOrder() Sets the current record's "filterFieldOrder" value
 * @method SelectedFilterField setValue1()           Sets the current record's "value1" value
 * @method SelectedFilterField setValue2()           Sets the current record's "value2" value
 * @method SelectedFilterField setWhereCondition()   Sets the current record's "whereCondition" value
 * @method SelectedFilterField setType()             Sets the current record's "type" value
 * @method SelectedFilterField setReport()           Sets the current record's "Report" value
 * @method SelectedFilterField setFilterField()      Sets the current record's "FilterField" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseSelectedFilterField extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_selected_filter_field');
        $this->hasColumn('report_id as reportId', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('filter_field_id as filterFieldId', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('filter_field_order as filterFieldOrder', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             ));
        $this->hasColumn('value1', 'string', 255, array(
             'type' => 'string',
             'length' => 255,
             ));
        $this->hasColumn('value2', 'string', 255, array(
             'type' => 'string',
             'length' => 255,
             ));
        $this->hasColumn('where_condition as whereCondition', 'string', 255, array(
             'type' => 'string',
             'length' => 255,
             ));
        $this->hasColumn('type', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
    }

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

        $this->hasOne('FilterField', array(
             'local' => 'filter_field_id',
             'foreign' => 'filterFieldId',
             'onDelete' => 'cascade'));
    }
}