<?php

/**
 * BaseLanguage
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string                                  $id                                           Type: string(13), primary key
 * @property string                                  $name                                         Type: string(120)
 * @property Doctrine_Collection|EmployeeLanguage[]  $EmployeeLanguage                             
 *  
 * @method string                                    getId()                                       Type: string(13), primary key
 * @method string                                    getName()                                     Type: string(120)
 * @method Doctrine_Collection|EmployeeLanguage[]    getEmployeeLanguage()                         
 *  
 * @method Language                                  setId(string $val)                            Type: string(13), primary key
 * @method Language                                  setName(string $val)                          Type: string(120)
 * @method Language                                  setEmployeeLanguage(Doctrine_Collection $val) 
 *  
 * @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('ohrm_language');
        $this->hasColumn('id', 'string', 13, array(
             'type' => 'string',
             'primary' => true,
             'autoincrement' => true,
             'length' => 13,
             ));
        $this->hasColumn('name', 'string', 120, array(
             'type' => 'string',
             'length' => 120,
             ));
    }

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