<?php

/**
 * BaseJobCategory
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $eec_code
 * @property string $eec_desc
 * @property Doctrine_Collection $Employee
 * 
 * @method string              getEecCode()  Returns the current record's "eec_code" value
 * @method string              getEecDesc()  Returns the current record's "eec_desc" value
 * @method Doctrine_Collection getEmployee() Returns the current record's "Employee" collection
 * @method JobCategory         setEecCode()  Sets the current record's "eec_code" value
 * @method JobCategory         setEecDesc()  Sets the current record's "eec_desc" value
 * @method JobCategory         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 BaseJobCategory extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_eec');
        $this->hasColumn('eec_code', 'string', 13, array(
             'type' => 'string',
             'primary' => true,
             'length' => 13,
             ));
        $this->hasColumn('eec_desc', 'string', 50, array(
             'type' => 'string',
             'length' => 50,
             ));
    }

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