<?php

/**
 * BaseEmpUsTaxExemption
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $empNumber
 * @property string $federalStatus
 * @property integer $federalExemptions
 * @property string $state
 * @property string $stateStatus
 * @property integer $stateExemptions
 * @property string $unemploymentState
 * @property string $workState
 * @property Employee $Employee
 * 
 * @method integer           getEmpNumber()         Returns the current record's "empNumber" value
 * @method string            getFederalStatus()     Returns the current record's "federalStatus" value
 * @method integer           getFederalExemptions() Returns the current record's "federalExemptions" value
 * @method string            getState()             Returns the current record's "state" value
 * @method string            getStateStatus()       Returns the current record's "stateStatus" value
 * @method integer           getStateExemptions()   Returns the current record's "stateExemptions" value
 * @method string            getUnemploymentState() Returns the current record's "unemploymentState" value
 * @method string            getWorkState()         Returns the current record's "workState" value
 * @method Employee          getEmployee()          Returns the current record's "Employee" value
 * @method EmpUsTaxExemption setEmpNumber()         Sets the current record's "empNumber" value
 * @method EmpUsTaxExemption setFederalStatus()     Sets the current record's "federalStatus" value
 * @method EmpUsTaxExemption setFederalExemptions() Sets the current record's "federalExemptions" value
 * @method EmpUsTaxExemption setState()             Sets the current record's "state" value
 * @method EmpUsTaxExemption setStateStatus()       Sets the current record's "stateStatus" value
 * @method EmpUsTaxExemption setStateExemptions()   Sets the current record's "stateExemptions" value
 * @method EmpUsTaxExemption setUnemploymentState() Sets the current record's "unemploymentState" value
 * @method EmpUsTaxExemption setWorkState()         Sets the current record's "workState" value
 * @method EmpUsTaxExemption setEmployee()          Sets the current record's "Employee" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseEmpUsTaxExemption extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_emp_us_tax');
        $this->hasColumn('emp_number as empNumber', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('tax_federal_status as federalStatus', 'string', 30, array(
             'type' => 'string',
             'default' => '',
             'length' => 30,
             ));
        $this->hasColumn('tax_federal_exceptions as federalExemptions', 'integer', 4, array(
             'type' => 'integer',
             'default' => '0',
             'length' => 4,
             ));
        $this->hasColumn('tax_state as state', 'string', 30, array(
             'type' => 'string',
             'default' => '',
             'length' => 30,
             ));
        $this->hasColumn('tax_state_status as stateStatus', 'string', 30, array(
             'type' => 'string',
             'default' => '',
             'length' => 30,
             ));
        $this->hasColumn('tax_state_exceptions as stateExemptions', 'integer', 4, array(
             'type' => 'integer',
             'default' => '0',
             'length' => 4,
             ));
        $this->hasColumn('tax_unemp_state as unemploymentState', 'string', 30, array(
             'type' => 'string',
             'default' => '',
             'length' => 30,
             ));
        $this->hasColumn('tax_work_state as workState', 'string', 30, array(
             'type' => 'string',
             'default' => '',
             'length' => 30,
             ));
    }

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