<?php

/**
 * BaseJobTitleEmployeeStatus
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $jobtit_code
 * @property integer $estat_code
 * @property JobTitle $JobTitle
 * 
 * @method string                 getJobtitCode()  Returns the current record's "jobtit_code" value
 * @method integer                getEstatCode()   Returns the current record's "estat_code" value
 * @method JobTitle               getJobTitle()    Returns the current record's "JobTitle" value
 * @method JobTitleEmployeeStatus setJobtitCode()  Sets the current record's "jobtit_code" value
 * @method JobTitleEmployeeStatus setEstatCode()   Sets the current record's "estat_code" value
 * @method JobTitleEmployeeStatus setJobTitle()    Sets the current record's "JobTitle" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseJobTitleEmployeeStatus extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_jobtit_empstat');
        $this->hasColumn('jobtit_code', 'string', 13, array(
             'type' => 'string',
             'primary' => true,
             'length' => 13,
             ));
        $this->hasColumn('estat_code', 'integer', 13, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 13,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('JobTitle', array(
             'local' => 'jobtit_code',
             'foreign' => 'id'));
    }
}