<?php

/**
 * BaseEmployeeEducation
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $emp_number
 * @property string $code
 * @property string $major
 * @property decimal $year
 * @property string $gpa
 * @property timestamp $start_date
 * @property timestamp $end_date
 * @property Employee $Employee
 * @property Education $Education
 * 
 * @method integer           getEmpNumber()  Returns the current record's "emp_number" value
 * @method string            getCode()       Returns the current record's "code" value
 * @method string            getMajor()      Returns the current record's "major" value
 * @method decimal           getYear()       Returns the current record's "year" value
 * @method string            getGpa()        Returns the current record's "gpa" value
 * @method timestamp         getStartDate()  Returns the current record's "start_date" value
 * @method timestamp         getEndDate()    Returns the current record's "end_date" value
 * @method Employee          getEmployee()   Returns the current record's "Employee" value
 * @method Education         getEducation()  Returns the current record's "Education" value
 * @method EmployeeEducation setEmpNumber()  Sets the current record's "emp_number" value
 * @method EmployeeEducation setCode()       Sets the current record's "code" value
 * @method EmployeeEducation setMajor()      Sets the current record's "major" value
 * @method EmployeeEducation setYear()       Sets the current record's "year" value
 * @method EmployeeEducation setGpa()        Sets the current record's "gpa" value
 * @method EmployeeEducation setStartDate()  Sets the current record's "start_date" value
 * @method EmployeeEducation setEndDate()    Sets the current record's "end_date" value
 * @method EmployeeEducation setEmployee()   Sets the current record's "Employee" value
 * @method EmployeeEducation setEducation()  Sets the current record's "Education" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseEmployeeEducation extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_emp_education');
        $this->hasColumn('emp_number', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('edu_code as code', 'string', 13, array(
             'type' => 'string',
             'primary' => true,
             'length' => 13,
             ));
        $this->hasColumn('edu_major as major', 'string', 100, array(
             'type' => 'string',
             'length' => 100,
             ));
        $this->hasColumn('edu_year as year', 'decimal', 4, array(
             'type' => 'decimal',
             'length' => 4,
             ));
        $this->hasColumn('edu_gpa as gpa', 'string', 25, array(
             'type' => 'string',
             'length' => 25,
             ));
        $this->hasColumn('edu_start_date as start_date', 'timestamp', 25, array(
             'type' => 'timestamp',
             'length' => 25,
             ));
        $this->hasColumn('edu_end_date as end_date', 'timestamp', 25, array(
             'type' => 'timestamp',
             'length' => 25,
             ));
    }

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

        $this->hasOne('Education', array(
             'local' => 'edu_code',
             'foreign' => 'edu_code'));
    }
}