<?php

/**
 * BasePayGradeCurrency
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int $pay_grade_id
 * @property string $currency_id
 * @property float $minSalary
 * @property float $maxSalary
 * @property CurrencyType $CurrencyType
 * @property PayGrade $PayGrade
 * 
 * @method int              getPayGradeId()   Returns the current record's "pay_grade_id" value
 * @method string           getCurrencyId()   Returns the current record's "currency_id" value
 * @method float            getMinSalary()    Returns the current record's "minSalary" value
 * @method float            getMaxSalary()    Returns the current record's "maxSalary" value
 * @method CurrencyType     getCurrencyType() Returns the current record's "CurrencyType" value
 * @method PayGrade         getPayGrade()     Returns the current record's "PayGrade" value
 * @method PayGradeCurrency setPayGradeId()   Sets the current record's "pay_grade_id" value
 * @method PayGradeCurrency setCurrencyId()   Sets the current record's "currency_id" value
 * @method PayGradeCurrency setMinSalary()    Sets the current record's "minSalary" value
 * @method PayGradeCurrency setMaxSalary()    Sets the current record's "maxSalary" value
 * @method PayGradeCurrency setCurrencyType() Sets the current record's "CurrencyType" value
 * @method PayGradeCurrency setPayGrade()     Sets the current record's "PayGrade" value
 * 
 * @package    orangehrm
 * @subpackage model\admin\base
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BasePayGradeCurrency extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_pay_grade_currency');
        $this->hasColumn('pay_grade_id', 'int', null, array(
             'type' => 'int',
             'primary' => true,
             ));
        $this->hasColumn('currency_id', 'string', 6, array(
             'type' => 'string',
             'primary' => true,
             'length' => 6,
             ));
        $this->hasColumn('min_salary as minSalary', 'float', 2147483647, array(
             'type' => 'float',
             'length' => 2147483647,
             ));
        $this->hasColumn('max_salary as maxSalary', 'float', 2147483647, array(
             'type' => 'float',
             'length' => 2147483647,
             ));
    }

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

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