<?php

/**
 * BaseEmployeeLanguage
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $empNumber
 * @property string $langId
 * @property integer $fluency
 * @property integer $competency
 * @property string $comments
 * @property Employee $Employee
 * @property Language $Language
 * 
 * @method integer          getEmpNumber()  Returns the current record's "empNumber" value
 * @method string           getLangId()     Returns the current record's "langId" value
 * @method integer          getFluency()    Returns the current record's "fluency" value
 * @method integer          getCompetency() Returns the current record's "competency" value
 * @method string           getComments()   Returns the current record's "comments" value
 * @method Employee         getEmployee()   Returns the current record's "Employee" value
 * @method Language         getLanguage()   Returns the current record's "Language" value
 * @method EmployeeLanguage setEmpNumber()  Sets the current record's "empNumber" value
 * @method EmployeeLanguage setLangId()     Sets the current record's "langId" value
 * @method EmployeeLanguage setFluency()    Sets the current record's "fluency" value
 * @method EmployeeLanguage setCompetency() Sets the current record's "competency" value
 * @method EmployeeLanguage setComments()   Sets the current record's "comments" value
 * @method EmployeeLanguage setEmployee()   Sets the current record's "Employee" value
 * @method EmployeeLanguage setLanguage()   Sets the current record's "Language" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseEmployeeLanguage extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_emp_language');
        $this->hasColumn('emp_number as empNumber', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('lang_id as langId', 'string', 13, array(
             'type' => 'string',
             'primary' => true,
             'length' => 13,
             ));
        $this->hasColumn('fluency', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             ));
        $this->hasColumn('competency', 'integer', null, array(
             'type' => 'integer',
             'default' => '0',
             ));
        $this->hasColumn('comments', 'string', 100, array(
             'type' => 'string',
             'length' => 100,
             ));
    }

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

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