<?php

/**
 * BaseEmpUsTaxExemption
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                $empNumber                        Type: integer(4), primary key
 * @property string             $federalStatus                    Type: string(30)
 * @property int                $federalExemptions                Type: integer(4), default "0"
 * @property string             $state                            Type: string(30)
 * @property string             $stateStatus                      Type: string(30)
 * @property int                $stateExemptions                  Type: integer(4), default "0"
 * @property string             $unemploymentState                Type: string(30)
 * @property string             $workState                        Type: string(30)
 * @property Employee           $Employee                         
 *  
 * @method int                  getEmpnumber()                    Type: integer(4), primary key
 * @method string               getFederalstatus()                Type: string(30)
 * @method int                  getFederalexemptions()            Type: integer(4), default "0"
 * @method string               getState()                        Type: string(30)
 * @method string               getStatestatus()                  Type: string(30)
 * @method int                  getStateexemptions()              Type: integer(4), default "0"
 * @method string               getUnemploymentstate()            Type: string(30)
 * @method string               getWorkstate()                    Type: string(30)
 * @method Employee             getEmployee()                     
 *  
 * @method EmpUsTaxExemption    setEmpnumber(int $val)            Type: integer(4), primary key
 * @method EmpUsTaxExemption    setFederalstatus(string $val)     Type: string(30)
 * @method EmpUsTaxExemption    setFederalexemptions(int $val)    Type: integer(4), default "0"
 * @method EmpUsTaxExemption    setState(string $val)             Type: string(30)
 * @method EmpUsTaxExemption    setStatestatus(string $val)       Type: string(30)
 * @method EmpUsTaxExemption    setStateexemptions(int $val)      Type: integer(4), default "0"
 * @method EmpUsTaxExemption    setUnemploymentstate(string $val) Type: string(30)
 * @method EmpUsTaxExemption    setWorkstate(string $val)         Type: string(30)
 * @method EmpUsTaxExemption    setEmployee(Employee $val)        
 *  
 * @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'));
    }
}