<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('RH_DH_VALORES_DESEMPENO', 'doctrine');

/**
 * BaseRH_DH_VALORES_DESEMPENO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_val_des
 * @property integer $id_formato
 * @property string $num_doc
 * @property integer $id_variable_desempeno
 * @property float $valor_ponderado
 * @property integer $id_cia
 * @property integer $id_cen_op
 * @property RH_DH_FORMATO_ENCUESTA $RH_DH_FORMATO_ENCUESTA
 * @property RH_DH_VARIABLE_DESEMPENO $RH_DH_VARIABLE_DESEMPENO
 * 
 * @method integer                  getIdValDes()                 Returns the current record's "id_val_des" value
 * @method integer                  getIdFormato()                Returns the current record's "id_formato" value
 * @method string                   getNumDoc()                   Returns the current record's "num_doc" value
 * @method integer                  getIdVariableDesempeno()      Returns the current record's "id_variable_desempeno" value
 * @method float                    getValorPonderado()           Returns the current record's "valor_ponderado" value
 * @method integer                  getIdCia()                    Returns the current record's "id_cia" value
 * @method integer                  getIdCenOp()                  Returns the current record's "id_cen_op" value
 * @method RH_DH_FORMATO_ENCUESTA   getRHDHFORMATOENCUESTA()      Returns the current record's "RH_DH_FORMATO_ENCUESTA" value
 * @method RH_DH_VARIABLE_DESEMPENO getRHDHVARIABLEDESEMPENO()    Returns the current record's "RH_DH_VARIABLE_DESEMPENO" value
 * @method RH_DH_VALORES_DESEMPENO  setIdValDes()                 Sets the current record's "id_val_des" value
 * @method RH_DH_VALORES_DESEMPENO  setIdFormato()                Sets the current record's "id_formato" value
 * @method RH_DH_VALORES_DESEMPENO  setNumDoc()                   Sets the current record's "num_doc" value
 * @method RH_DH_VALORES_DESEMPENO  setIdVariableDesempeno()      Sets the current record's "id_variable_desempeno" value
 * @method RH_DH_VALORES_DESEMPENO  setValorPonderado()           Sets the current record's "valor_ponderado" value
 * @method RH_DH_VALORES_DESEMPENO  setIdCia()                    Sets the current record's "id_cia" value
 * @method RH_DH_VALORES_DESEMPENO  setIdCenOp()                  Sets the current record's "id_cen_op" value
 * @method RH_DH_VALORES_DESEMPENO  setRHDHFORMATOENCUESTA()      Sets the current record's "RH_DH_FORMATO_ENCUESTA" value
 * @method RH_DH_VALORES_DESEMPENO  setRHDHVARIABLEDESEMPENO()    Sets the current record's "RH_DH_VARIABLE_DESEMPENO" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_DH_VALORES_DESEMPENO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DH_VALORES_DESEMPENO');
        $this->hasColumn('id_val_des', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_formato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_variable_desempeno', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_ponderado', 'float', 22, array(
             'notnull' => false,
             'type' => 'float',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('id_cia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cen_op', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('RH_DH_VARIABLE_DESEMPENO', array(
             'local' => 'id_variable_desempeno',
             'foreign' => 'id_variable_desempeno'));
    }
}