<?php

/**
 * BaseGroupField
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $groupFieldId
 * @property string $name
 * @property clob $groupByClause
 * @property string $groupFieldWidget
 * @property Doctrine_Collection $AvailableGroupField
 * @property Doctrine_Collection $SelectedGroupField
 * 
 * @method integer             getGroupFieldId()        Returns the current record's "groupFieldId" value
 * @method string              getName()                Returns the current record's "name" value
 * @method clob                getGroupByClause()       Returns the current record's "groupByClause" value
 * @method string              getGroupFieldWidget()    Returns the current record's "groupFieldWidget" value
 * @method Doctrine_Collection getAvailableGroupField() Returns the current record's "AvailableGroupField" collection
 * @method Doctrine_Collection getSelectedGroupField()  Returns the current record's "SelectedGroupField" collection
 * @method GroupField          setGroupFieldId()        Sets the current record's "groupFieldId" value
 * @method GroupField          setName()                Sets the current record's "name" value
 * @method GroupField          setGroupByClause()       Sets the current record's "groupByClause" value
 * @method GroupField          setGroupFieldWidget()    Sets the current record's "groupFieldWidget" value
 * @method GroupField          setAvailableGroupField() Sets the current record's "AvailableGroupField" collection
 * @method GroupField          setSelectedGroupField()  Sets the current record's "SelectedGroupField" collection
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseGroupField extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_group_field');
        $this->hasColumn('group_field_id as groupFieldId', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('name', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => 255,
             ));
        $this->hasColumn('group_by_clause as groupByClause', 'clob', null, array(
             'type' => 'clob',
             'notnull' => true,
             ));
        $this->hasColumn('group_field_widget as groupFieldWidget', 'string', 255, array(
             'type' => 'string',
             'length' => 255,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('AvailableGroupField', array(
             'local' => 'groupFieldId',
             'foreign' => 'group_field_id'));

        $this->hasMany('SelectedGroupField', array(
             'local' => 'groupFieldId',
             'foreign' => 'group_field_id'));
    }
}