<?php

/**
 * BaseCompositeDisplayField
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $compositeDisplayFieldId
 * @property string $defaultValue
 * @property Doctrine_Collection $SelectedCompositeDisplayField
 * 
 * @method integer               getCompositeDisplayFieldId()       Returns the current record's "compositeDisplayFieldId" value
 * @method string                getDefaultValue()                  Returns the current record's "defaultValue" value
 * @method Doctrine_Collection   getSelectedCompositeDisplayField() Returns the current record's "SelectedCompositeDisplayField" collection
 * @method CompositeDisplayField setCompositeDisplayFieldId()       Sets the current record's "compositeDisplayFieldId" value
 * @method CompositeDisplayField setDefaultValue()                  Sets the current record's "defaultValue" value
 * @method CompositeDisplayField setSelectedCompositeDisplayField() Sets the current record's "SelectedCompositeDisplayField" 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 BaseCompositeDisplayField extends AbstractDisplayField
{
    public function setTableDefinition()
    {
        parent::setTableDefinition();
        $this->setTableName('ohrm_composite_display_field');
        $this->hasColumn('composite_display_field_id as compositeDisplayFieldId', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             ));
        $this->hasColumn('default_value as defaultValue', 'string', 255, array(
             'type' => 'string',
             'length' => 255,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('SelectedCompositeDisplayField', array(
             'local' => 'compositeDisplayFieldId',
             'foreign' => 'composite_display_field_id'));
    }
}