<?php

/**
 * BaseEmployeeWorkShift
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $workShiftId
 * @property integer $emp_number
 * @property WorkShift $WorkShift
 * @property Employee $Employee
 * 
 * @method integer           getWorkShiftId() Returns the current record's "workShiftId" value
 * @method integer           getEmpNumber()   Returns the current record's "emp_number" value
 * @method WorkShift         getWorkShift()   Returns the current record's "WorkShift" value
 * @method Employee          getEmployee()    Returns the current record's "Employee" value
 * @method EmployeeWorkShift setWorkShiftId() Sets the current record's "workShiftId" value
 * @method EmployeeWorkShift setEmpNumber()   Sets the current record's "emp_number" value
 * @method EmployeeWorkShift setWorkShift()   Sets the current record's "WorkShift" value
 * @method EmployeeWorkShift setEmployee()    Sets the current record's "Employee" value
 * 
 * @package    orangehrm
 * @subpackage model\pim\base
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseEmployeeWorkShift extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_employee_work_shift');
        $this->hasColumn('work_shift_id as workShiftId', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('emp_number', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
    }

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

        $this->hasOne('Employee', array(
             'local' => 'emp_number',
             'foreign' => 'empNumber'));
    }
}