<?php

/**
 * BaseDefineKpi
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $jobtitlecode
 * @property string $desc
 * @property float $min
 * @property float $max
 * @property integer $default
 * @property integer $isactive
 * @property JobTitle $JobTitle
 * 
 * @method integer   getId()           Returns the current record's "id" value
 * @method string    getJobtitlecode() Returns the current record's "jobtitlecode" value
 * @method string    getDesc()         Returns the current record's "desc" value
 * @method float     getMin()          Returns the current record's "min" value
 * @method float     getMax()          Returns the current record's "max" value
 * @method integer   getDefault()      Returns the current record's "default" value
 * @method integer   getIsactive()     Returns the current record's "isactive" value
 * @method JobTitle  getJobTitle()     Returns the current record's "JobTitle" value
 * @method DefineKpi setId()           Sets the current record's "id" value
 * @method DefineKpi setJobtitlecode() Sets the current record's "jobtitlecode" value
 * @method DefineKpi setDesc()         Sets the current record's "desc" value
 * @method DefineKpi setMin()          Sets the current record's "min" value
 * @method DefineKpi setMax()          Sets the current record's "max" value
 * @method DefineKpi setDefault()      Sets the current record's "default" value
 * @method DefineKpi setIsactive()     Sets the current record's "isactive" value
 * @method DefineKpi setJobTitle()     Sets the current record's "JobTitle" value
 * 
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseDefineKpi extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('hs_hr_kpi');
        $this->hasColumn('id as id', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 4,
             ));
        $this->hasColumn('job_title_code as jobtitlecode', 'string', 13, array(
             'type' => 'string',
             'length' => 13,
             ));
        $this->hasColumn('description as desc', 'string', 200, array(
             'type' => 'string',
             'length' => 200,
             ));
        $this->hasColumn('rate_min as min', 'float', null, array(
             'type' => 'float',
             ));
        $this->hasColumn('rate_max as max', 'float', null, array(
             'type' => 'float',
             ));
        $this->hasColumn('rate_default as default', 'integer', 1, array(
             'type' => 'integer',
             'length' => 1,
             ));
        $this->hasColumn('is_active as isactive', 'integer', 1, array(
             'type' => 'integer',
             'length' => 1,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('JobTitle', array(
             'local' => 'jobtitlecode',
             'foreign' => 'id'));
    }
}