<?php

/**
 * BaseDisplayField
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $displayFieldId
 * @property 1 $display_field_group_id
 * @property Doctrine_Collection $SelectedDisplayField
 * 
 * @method integer             getDisplayFieldId()         Returns the current record's "displayFieldId" value
 * @method 1                   getDisplayFieldGroupId()    Returns the current record's "display_field_group_id" value
 * @method Doctrine_Collection getSelectedDisplayField()   Returns the current record's "SelectedDisplayField" collection
 * @method DisplayField        setDisplayFieldId()         Sets the current record's "displayFieldId" value
 * @method DisplayField        setDisplayFieldGroupId()    Sets the current record's "display_field_group_id" value
 * @method DisplayField        setSelectedDisplayField()   Sets the current record's "SelectedDisplayField" collection
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseDisplayField extends AbstractDisplayField
{
    public function setTableDefinition()
    {
        parent::setTableDefinition();
        $this->setTableName('ohrm_display_field');
        $this->hasColumn('display_field_id as displayFieldId', 'integer', null, array(
             'autoincrement' => true,
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('display_field_group_id', '1', null, array(
             'type' => '1',
             'notnull' => true,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('SelectedDisplayField', array(
             'local' => 'displayFieldId',
             'foreign' => 'display_field_id'));
    }
}