<?php

/**
 * BaseLanguage
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $lang_code
 * @property string $lang_name
 * @property Doctrine_Collection $EmployeeLanguage
 * 
 * @method string              getLangCode()         Returns the current record's "lang_code" value
 * @method string              getLangName()         Returns the current record's "lang_name" value
 * @method Doctrine_Collection getEmployeeLanguage() Returns the current record's "EmployeeLanguage" collection
 * @method Language            setLangCode()         Sets the current record's "lang_code" value
 * @method Language            setLangName()         Sets the current record's "lang_name" value
 * @method Language            setEmployeeLanguage() Sets the current record's "EmployeeLanguage" collection
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseLanguage extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_language');
        $this->hasColumn('lang_code', 'string', 13, array(
             'type' => 'string',
             'primary' => true,
             'length' => 13,
             ));
        $this->hasColumn('lang_name', 'string', 120, array(
             'type' => 'string',
             'length' => 120,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('EmployeeLanguage', array(
             'local' => 'lang_code',
             'foreign' => 'lang_code'));
    }
}