<?php

/**
 * BaseEmployeeLicense
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $empNumber
 * @property integer $licenseId
 * @property string $licenseNo
 * @property date $licenseIssuedDate
 * @property date $licenseExpiryDate
 * @property Employee $Employee
 * @property License $License
 * 
 * @method integer         getEmpNumber()         Returns the current record's "empNumber" value
 * @method integer         getLicenseId()         Returns the current record's "licenseId" value
 * @method string          getLicenseNo()         Returns the current record's "licenseNo" value
 * @method date            getLicenseIssuedDate() Returns the current record's "licenseIssuedDate" value
 * @method date            getLicenseExpiryDate() Returns the current record's "licenseExpiryDate" value
 * @method Employee        getEmployee()          Returns the current record's "Employee" value
 * @method License         getLicense()           Returns the current record's "License" value
 * @method EmployeeLicense setEmpNumber()         Sets the current record's "empNumber" value
 * @method EmployeeLicense setLicenseId()         Sets the current record's "licenseId" value
 * @method EmployeeLicense setLicenseNo()         Sets the current record's "licenseNo" value
 * @method EmployeeLicense setLicenseIssuedDate() Sets the current record's "licenseIssuedDate" value
 * @method EmployeeLicense setLicenseExpiryDate() Sets the current record's "licenseExpiryDate" value
 * @method EmployeeLicense setEmployee()          Sets the current record's "Employee" value
 * @method EmployeeLicense setLicense()           Sets the current record's "License" 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 BaseEmployeeLicense extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_emp_license');
        $this->hasColumn('emp_number as empNumber', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('license_id as licenseId', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('license_no as licenseNo', 'string', 50, array(
             'type' => 'string',
             'length' => 50,
             ));
        $this->hasColumn('license_issued_date as licenseIssuedDate', 'date', null, array(
             'type' => 'date',
             ));
        $this->hasColumn('license_expiry_date as licenseExpiryDate', 'date', null, array(
             'type' => 'date',
             ));
    }

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

        $this->hasOne('License', array(
             'local' => 'license_id',
             'foreign' => 'id'));
    }
}