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

/**
 * BaseRH_DH_RESPUESTAS_DIMENSION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_formato
 * @property integer $id_variable_dimension
 * @property integer $id_criterio_dimension
 * @property decimal $valoracion
 * @property float $ponderado
 * @property integer $id_funcionario
 * @property integer $id_res_dim
 * @property integer $id
 * @property integer $id_cia
 * @property integer $id_cen_op
 * @property RH_DH_FORMATO_ENCUESTA $RH_DH_FORMATO_ENCUESTA
 * @property RH_DH_CRITERIO_DIMENSION $RH_DH_CRITERIO_DIMENSION
 * @property RH_DH_VARIABLE_DIMENSION $RH_DH_VARIABLE_DIMENSION
 * 
 * @method integer                    getIdFormato()                Returns the current record's "id_formato" value
 * @method integer                    getIdVariableDimension()      Returns the current record's "id_variable_dimension" value
 * @method integer                    getIdCriterioDimension()      Returns the current record's "id_criterio_dimension" value
 * @method decimal                    getValoracion()               Returns the current record's "valoracion" value
 * @method float                      getPonderado()                Returns the current record's "ponderado" value
 * @method integer                    getIdFuncionario()            Returns the current record's "id_funcionario" value
 * @method integer                    getIdResDim()                 Returns the current record's "id_res_dim" value
 * @method integer                    getId()                       Returns the current record's "id" 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_CRITERIO_DIMENSION   getRHDHCRITERIODIMENSION()    Returns the current record's "RH_DH_CRITERIO_DIMENSION" value
 * @method RH_DH_VARIABLE_DIMENSION   getRHDHVARIABLEDIMENSION()    Returns the current record's "RH_DH_VARIABLE_DIMENSION" value
 * @method RH_DH_RESPUESTAS_DIMENSION setIdFormato()                Sets the current record's "id_formato" value
 * @method RH_DH_RESPUESTAS_DIMENSION setIdVariableDimension()      Sets the current record's "id_variable_dimension" value
 * @method RH_DH_RESPUESTAS_DIMENSION setIdCriterioDimension()      Sets the current record's "id_criterio_dimension" value
 * @method RH_DH_RESPUESTAS_DIMENSION setValoracion()               Sets the current record's "valoracion" value
 * @method RH_DH_RESPUESTAS_DIMENSION setPonderado()                Sets the current record's "ponderado" value
 * @method RH_DH_RESPUESTAS_DIMENSION setIdFuncionario()            Sets the current record's "id_funcionario" value
 * @method RH_DH_RESPUESTAS_DIMENSION setIdResDim()                 Sets the current record's "id_res_dim" value
 * @method RH_DH_RESPUESTAS_DIMENSION setId()                       Sets the current record's "id" value
 * @method RH_DH_RESPUESTAS_DIMENSION setIdCia()                    Sets the current record's "id_cia" value
 * @method RH_DH_RESPUESTAS_DIMENSION setIdCenOp()                  Sets the current record's "id_cen_op" value
 * @method RH_DH_RESPUESTAS_DIMENSION setRHDHFORMATOENCUESTA()      Sets the current record's "RH_DH_FORMATO_ENCUESTA" value
 * @method RH_DH_RESPUESTAS_DIMENSION setRHDHCRITERIODIMENSION()    Sets the current record's "RH_DH_CRITERIO_DIMENSION" value
 * @method RH_DH_RESPUESTAS_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_RESPUESTAS_DIMENSION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DH_RESPUESTAS_DIMENSION');
        $this->hasColumn('id_formato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             '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('id_criterio_dimension', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valoracion', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('ponderado', 'float', 22, array(
             'notnull' => true,
             'type' => 'float',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('id_funcionario', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_res_dim', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $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_CRITERIO_DIMENSION', array(
             'local' => 'id_criterio_dimension',
             'foreign' => 'id_criterio_dimension'));

        $this->hasOne('RH_DH_VARIABLE_DIMENSION', array(
             'local' => 'id_variable_dimension',
             'foreign' => 'id_variable_dimension'));
    }
}