<?php

/**
 * BaseEmployeeSubscription
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                   $id                        Type: integer(4), primary key
 * @property int                   $employeeId                Type: integer(4)
 * @property int                   $status                    Type: integer(4)
 * @property string                $createdAt                 Type: date(25), Date in ISO-8601 format (YYYY-MM-DD)
 * @property Employee              $Employee                  
 *  
 * @method int                     getId()                    Type: integer(4), primary key
 * @method int                     getEmployeeid()            Type: integer(4)
 * @method int                     getStatus()                Type: integer(4)
 * @method string                  getCreatedat()             Type: date(25), Date in ISO-8601 format (YYYY-MM-DD)
 * @method Employee                getEmployee()              
 *  
 * @method EmployeeSubscription    setId(int $val)            Type: integer(4), primary key
 * @method EmployeeSubscription    setEmployeeid(int $val)    Type: integer(4)
 * @method EmployeeSubscription    setStatus(int $val)        Type: integer(4)
 * @method EmployeeSubscription    setCreatedat(string $val)  Type: date(25), Date in ISO-8601 format (YYYY-MM-DD)
 * @method EmployeeSubscription    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 BaseEmployeeSubscription extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_employee_subscription');
        $this->hasColumn('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('status', 'integer', 4, array(
             'type' => 'integer',
             'length' => 4,
             ));
        $this->hasColumn('created_at as createdAt', 'date', 25, array(
             'type' => 'date',
             'length' => 25,
             ));
    }

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