<?php

/**
 * BasePayGradeCurrency
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int               $pay_grade_id                      Type: int, primary key
 * @property string            $currency_id                       Type: string(6), primary key
 * @property float             $minSalary                         Type: float(2147483647)
 * @property float             $maxSalary                         Type: float(2147483647)
 * @property CurrencyType      $CurrencyType                      
 * @property PayGrade          $PayGrade                          
 *  
 * @method int                 getPayGradeId()                    Type: int, primary key
 * @method string              getCurrencyId()                    Type: string(6), primary key
 * @method float               getMinsalary()                     Type: float(2147483647)
 * @method float               getMaxsalary()                     Type: float(2147483647)
 * @method CurrencyType        getCurrencyType()                  
 * @method PayGrade            getPayGrade()                      
 *  
 * @method PayGradeCurrency    setPayGradeId(int $val)            Type: int, primary key
 * @method PayGradeCurrency    setCurrencyId(string $val)         Type: string(6), primary key
 * @method PayGradeCurrency    setMinsalary(float $val)           Type: float(2147483647)
 * @method PayGradeCurrency    setMaxsalary(float $val)           Type: float(2147483647)
 * @method PayGradeCurrency    setCurrencyType(CurrencyType $val) 
 * @method PayGradeCurrency    setPayGrade(PayGrade $val)         
 *  
 * @package    orangehrm
 * @subpackage model
 * @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'));
    }
}