<?php

/**
 * BaseEmployeeEducation
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $empNumber
 * @property integer $educationId
 * @property string $institute
 * @property string $major
 * @property decimal $year
 * @property string $score
 * @property date $startDate
 * @property date $endDate
 * @property Employee $Employee
 * @property Education $Education
 * 
 * @method integer           getId()          Returns the current record's "id" value
 * @method integer           getEmpNumber()   Returns the current record's "empNumber" value
 * @method integer           getEducationId() Returns the current record's "educationId" value
 * @method string            getInstitute()   Returns the current record's "institute" value
 * @method string            getMajor()       Returns the current record's "major" value
 * @method decimal           getYear()        Returns the current record's "year" value
 * @method string            getScore()       Returns the current record's "score" value
 * @method date              getStartDate()   Returns the current record's "startDate" value
 * @method date              getEndDate()     Returns the current record's "endDate" value
 * @method Employee          getEmployee()    Returns the current record's "Employee" value
 * @method Education         getEducation()   Returns the current record's "Education" value
 * @method EmployeeEducation setId()          Sets the current record's "id" value
 * @method EmployeeEducation setEmpNumber()   Sets the current record's "empNumber" value
 * @method EmployeeEducation setEducationId() Sets the current record's "educationId" value
 * @method EmployeeEducation setInstitute()   Sets the current record's "institute" value
 * @method EmployeeEducation setMajor()       Sets the current record's "major" value
 * @method EmployeeEducation setYear()        Sets the current record's "year" value
 * @method EmployeeEducation setScore()       Sets the current record's "score" value
 * @method EmployeeEducation setStartDate()   Sets the current record's "startDate" value
 * @method EmployeeEducation setEndDate()     Sets the current record's "endDate" 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\pim\base
 * @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('ohrm_emp_education');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             ));
        $this->hasColumn('emp_number as empNumber', 'integer', null, array(
             'type' => 'integer',
             ));
        $this->hasColumn('education_id as educationId', 'integer', null, array(
             'type' => 'integer',
             ));
        $this->hasColumn('institute', 'string', 100, array(
             'type' => 'string',
             'length' => 100,
             ));
        $this->hasColumn('major', 'string', 100, array(
             'type' => 'string',
             'length' => 100,
             ));
        $this->hasColumn('year', 'decimal', 4, array(
             'type' => 'decimal',
             'length' => 4,
             ));
        $this->hasColumn('score', 'string', 25, array(
             'type' => 'string',
             'length' => 25,
             ));
        $this->hasColumn('start_date as startDate', 'date', null, array(
             'type' => 'date',
             ));
        $this->hasColumn('end_date as endDate', 'date', null, array(
             'type' => 'date',
             ));
    }

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

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