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

/**
 * BaseRH_DH_VALORES_DIMENSION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_val_dim
 * @property integer $id_formato
 * @property string $num_doc
 * @property integer $id_variable_dimension
 * @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_DIMENSION $RH_DH_VARIABLE_DIMENSION
 * 
 * @method integer                  getIdValDim()                 Returns the current record's "id_val_dim" 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                  getIdVariableDimension()      Returns the current record's "id_variable_dimension" 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_DIMENSION getRHDHVARIABLEDIMENSION()    Returns the current record's "RH_DH_VARIABLE_DIMENSION" value
 * @method RH_DH_VALORES_DIMENSION  setIdValDim()                 Sets the current record's "id_val_dim" value
 * @method RH_DH_VALORES_DIMENSION  setIdFormato()                Sets the current record's "id_formato" value
 * @method RH_DH_VALORES_DIMENSION  setNumDoc()                   Sets the current record's "num_doc" value
 * @method RH_DH_VALORES_DIMENSION  setIdVariableDimension()      Sets the current record's "id_variable_dimension" value
 * @method RH_DH_VALORES_DIMENSION  setValorPonderado()           Sets the current record's "valor_ponderado" value
 * @method RH_DH_VALORES_DIMENSION  setIdCia()                    Sets the current record's "id_cia" value
 * @method RH_DH_VALORES_DIMENSION  setIdCenOp()                  Sets the current record's "id_cen_op" value
 * @method RH_DH_VALORES_DIMENSION  setRHDHFORMATOENCUESTA()      Sets the current record's "RH_DH_FORMATO_ENCUESTA" value
 * @method RH_DH_VALORES_DIMENSION  setRHDHVARIABLEDIMENSION()    Sets the current record's "RH_DH_VARIABLE_DIMENSION" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_DH_VALORES_DIMENSION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DH_VALORES_DIMENSION');
        $this->hasColumn('id_val_dim', '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_dimension', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_ponderado', 'float', 22, array(
             'notnull' => true,
             '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_DIMENSION', array(
             'local' => 'id_variable_dimension',
             'foreign' => 'id_variable_dimension'));
    }
}