<?php

/**
 * BaseJobCategory
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                             $id                                   Type: integer, primary key
 * @property string                          $name                                 Type: string(50)
 * @property Doctrine_Collection|Employee[]  $Employee                             
 *  
 * @method int                               getId()                               Type: integer, primary key
 * @method string                            getName()                             Type: string(50)
 * @method Doctrine_Collection|Employee[]    getEmployee()                         
 *  
 * @method JobCategory                       setId(int $val)                       Type: integer, primary key
 * @method JobCategory                       setName(string $val)                  Type: string(50)
 * @method JobCategory                       setEmployee(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 BaseJobCategory extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_job_category');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             ));
        $this->hasColumn('name', 'string', 50, array(
             'type' => 'string',
             'length' => 50,
             ));
    }

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