<?php

/**
 * BaseEthnicRace
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $ethnic_race_code
 * @property string $ethnic_race_desc
 * @property Doctrine_Collection $Employee
 * 
 * @method string              getEthnicRaceCode()   Returns the current record's "ethnic_race_code" value
 * @method string              getEthnicRaceDesc()   Returns the current record's "ethnic_race_desc" value
 * @method Doctrine_Collection getEmployee()         Returns the current record's "Employee" collection
 * @method EthnicRace          setEthnicRaceCode()   Sets the current record's "ethnic_race_code" value
 * @method EthnicRace          setEthnicRaceDesc()   Sets the current record's "ethnic_race_desc" value
 * @method EthnicRace          setEmployee()         Sets the current record's "Employee" collection
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseEthnicRace extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_ethnic_race');
        $this->hasColumn('ethnic_race_code', 'string', 13, array(
             'type' => 'string',
             'primary' => true,
             'length' => 13,
             ));
        $this->hasColumn('ethnic_race_desc', 'string', 50, array(
             'type' => 'string',
             'length' => 50,
             ));
    }

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