<?php

/**
 * BaseEmployeeEvent
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int            $event_id                   Type: integer(4), primary key
 * @property int            $employeeId                 Type: integer(4)
 * @property string         $type                       Type: string(45)
 * @property string         $event                      Type: string(45)
 * @property string         $note                       Type: string(150)
 * @property string         $createdDate                Type: date(25), Date in ISO-8601 format (YYYY-MM-DD)
 * @property string         $createdBy                  Type: string(45)
 * @property Employee       $Employee                   
 *  
 * @method int              getEventId()                Type: integer(4), primary key
 * @method int              getEmployeeid()             Type: integer(4)
 * @method string           getType()                   Type: string(45)
 * @method string           getEvent()                  Type: string(45)
 * @method string           getNote()                   Type: string(150)
 * @method string           getCreateddate()            Type: date(25), Date in ISO-8601 format (YYYY-MM-DD)
 * @method string           getCreatedby()              Type: string(45)
 * @method Employee         getEmployee()               
 *  
 * @method EmployeeEvent    setEventId(int $val)        Type: integer(4), primary key
 * @method EmployeeEvent    setEmployeeid(int $val)     Type: integer(4)
 * @method EmployeeEvent    setType(string $val)        Type: string(45)
 * @method EmployeeEvent    setEvent(string $val)       Type: string(45)
 * @method EmployeeEvent    setNote(string $val)        Type: string(150)
 * @method EmployeeEvent    setCreateddate(string $val) Type: date(25), Date in ISO-8601 format (YYYY-MM-DD)
 * @method EmployeeEvent    setCreatedby(string $val)   Type: string(45)
 * @method EmployeeEvent    setEmployee(Employee $val)  
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseEmployeeEvent extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_employee_event');
        $this->hasColumn('event_id', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('employee_id as employeeId', 'integer', 4, array(
             'type' => 'integer',
             'length' => 4,
             ));
        $this->hasColumn('type as type', 'string', 45, array(
             'type' => 'string',
             'length' => 45,
             ));
        $this->hasColumn('event as event', 'string', 45, array(
             'type' => 'string',
             'length' => 45,
             ));
        $this->hasColumn('note as note', 'string', 150, array(
             'type' => 'string',
             'length' => 150,
             ));
        $this->hasColumn('created_date as createdDate', 'date', 25, array(
             'type' => 'date',
             'length' => 25,
             ));
        $this->hasColumn('created_by as createdBy', 'string', 45, array(
             'type' => 'string',
             'length' => 45,
             ));
    }

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