<?php

/**
 * BaseEmployeeLanguage
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int               $empNumber                 Type: integer, primary key
 * @property string            $langId                    Type: string(13), primary key
 * @property int               $fluency                   Type: integer, primary key, default "0"
 * @property int               $competency                Type: integer, default "0"
 * @property string            $comments                  Type: string(100)
 * @property Employee          $Employee                  
 * @property Language          $Language                  
 *  
 * @method int                 getEmpnumber()             Type: integer, primary key
 * @method string              getLangid()                Type: string(13), primary key
 * @method int                 getFluency()               Type: integer, primary key, default "0"
 * @method int                 getCompetency()            Type: integer, default "0"
 * @method string              getComments()              Type: string(100)
 * @method Employee            getEmployee()              
 * @method Language            getLanguage()              
 *  
 * @method EmployeeLanguage    setEmpnumber(int $val)     Type: integer, primary key
 * @method EmployeeLanguage    setLangid(string $val)     Type: string(13), primary key
 * @method EmployeeLanguage    setFluency(int $val)       Type: integer, primary key, default "0"
 * @method EmployeeLanguage    setCompetency(int $val)    Type: integer, default "0"
 * @method EmployeeLanguage    setComments(string $val)   Type: string(100)
 * @method EmployeeLanguage    setEmployee(Employee $val) 
 * @method EmployeeLanguage    setLanguage(Language $val) 
 *  
 * @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'));
    }
}