<?php

/**
 * BaseEducation
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $eduCode
 * @property string $edu_uni
 * @property string $edu_deg
 * @property Doctrine_Collection $EmployeeEducation
 * 
 * @method string              getEduCode()           Returns the current record's "eduCode" value
 * @method string              getEduUni()            Returns the current record's "edu_uni" value
 * @method string              getEduDeg()            Returns the current record's "edu_deg" value
 * @method Doctrine_Collection getEmployeeEducation() Returns the current record's "EmployeeEducation" collection
 * @method Education           setEduCode()           Sets the current record's "eduCode" value
 * @method Education           setEduUni()            Sets the current record's "edu_uni" value
 * @method Education           setEduDeg()            Sets the current record's "edu_deg" value
 * @method Education           setEmployeeEducation() Sets the current record's "EmployeeEducation" collection
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseEducation extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_education');
        $this->hasColumn('edu_code as eduCode', 'string', 13, array(
             'type' => 'string',
             'primary' => true,
             'length' => 13,
             ));
        $this->hasColumn('edu_uni', 'string', 100, array(
             'type' => 'string',
             'length' => 100,
             ));
        $this->hasColumn('edu_deg', 'string', 100, array(
             'type' => 'string',
             'length' => 100,
             ));
    }

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