<?php

/**
 * BaseDisplayFieldGroup
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $report_group_id
 * @property string $name
 * @property boolean $is_list
 * @property ReportGroup $ReportGroup
 * @property Doctrine_Collection $AbstractDisplayField
 * @property Doctrine_Collection $SelectedDisplayFieldGroup
 * 
 * @method integer             getId()                        Returns the current record's "id" value
 * @method integer             getReportGroupId()             Returns the current record's "report_group_id" value
 * @method string              getName()                      Returns the current record's "name" value
 * @method boolean             getIsList()                    Returns the current record's "is_list" value
 * @method ReportGroup         getReportGroup()               Returns the current record's "ReportGroup" value
 * @method Doctrine_Collection getAbstractDisplayField()      Returns the current record's "AbstractDisplayField" collection
 * @method Doctrine_Collection getSelectedDisplayFieldGroup() Returns the current record's "SelectedDisplayFieldGroup" collection
 * @method DisplayFieldGroup   setId()                        Sets the current record's "id" value
 * @method DisplayFieldGroup   setReportGroupId()             Sets the current record's "report_group_id" value
 * @method DisplayFieldGroup   setName()                      Sets the current record's "name" value
 * @method DisplayFieldGroup   setIsList()                    Sets the current record's "is_list" value
 * @method DisplayFieldGroup   setReportGroup()               Sets the current record's "ReportGroup" value
 * @method DisplayFieldGroup   setAbstractDisplayField()      Sets the current record's "AbstractDisplayField" collection
 * @method DisplayFieldGroup   setSelectedDisplayFieldGroup() Sets the current record's "SelectedDisplayFieldGroup" collection
 * 
 * @package    orangehrm
 * @subpackage model\core\base
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseDisplayFieldGroup extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_display_field_group');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'unsigned' => true,
             'primary' => true,
             ));
        $this->hasColumn('report_group_id', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             ));
        $this->hasColumn('name', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('is_list', 'boolean', null, array(
             'type' => 'boolean',
             'notnull' => true,
             'default' => false,
             ));
    }

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

        $this->hasMany('AbstractDisplayField', array(
             'local' => 'id',
             'foreign' => 'display_field_group_id'));

        $this->hasMany('SelectedDisplayFieldGroup', array(
             'local' => 'id',
             'foreign' => 'display_field_group_id'));
    }
}