<?php

/**
 * BaseCompositeDisplayField
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                                                  $compositeDisplayFieldId                                   Type: integer, primary key
 * @property string                                               $defaultValue                                              Type: string(255)
 * @property Doctrine_Collection|SelectedCompositeDisplayField[]  $SelectedCompositeDisplayField                             
 *  
 * @method int                                                    getCompositedisplayfieldid()                               Type: integer, primary key
 * @method string                                                 getDefaultvalue()                                          Type: string(255)
 * @method Doctrine_Collection|SelectedCompositeDisplayField[]    getSelectedCompositeDisplayField()                         
 *  
 * @method CompositeDisplayField                                  setCompositedisplayfieldid(int $val)                       Type: integer, primary key
 * @method CompositeDisplayField                                  setDefaultvalue(string $val)                               Type: string(255)
 * @method CompositeDisplayField                                  setSelectedCompositeDisplayField(Doctrine_Collection $val) 
 *  
 * @package    orangehrm
 * @subpackage model
 * @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'));
    }
}