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

/**
 * BaseRH_DH_MEDI_CRITERIO_DIMENSION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_medicion
 * @property integer $id_variable_dimension
 * @property integer $id_criterio_dimension
 * @property integer $escala_evaluacion
 * @property string $descripcion_escala
 * @property RH_DH_CRITERIO_DIMENSION $RH_DH_CRITERIO_DIMENSION
 * @property RH_DH_VARIABLE_DIMENSION $RH_DH_VARIABLE_DIMENSION
 * 
 * @method integer                       getIdMedicion()               Returns the current record's "id_medicion" 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 integer                       getEscalaEvaluacion()         Returns the current record's "escala_evaluacion" value
 * @method string                        getDescripcionEscala()        Returns the current record's "descripcion_escala" 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_MEDI_CRITERIO_DIMENSION setIdMedicion()               Sets the current record's "id_medicion" value
 * @method RH_DH_MEDI_CRITERIO_DIMENSION setIdVariableDimension()      Sets the current record's "id_variable_dimension" value
 * @method RH_DH_MEDI_CRITERIO_DIMENSION setIdCriterioDimension()      Sets the current record's "id_criterio_dimension" value
 * @method RH_DH_MEDI_CRITERIO_DIMENSION setEscalaEvaluacion()         Sets the current record's "escala_evaluacion" value
 * @method RH_DH_MEDI_CRITERIO_DIMENSION setDescripcionEscala()        Sets the current record's "descripcion_escala" value
 * @method RH_DH_MEDI_CRITERIO_DIMENSION setRHDHCRITERIODIMENSION()    Sets the current record's "RH_DH_CRITERIO_DIMENSION" value
 * @method RH_DH_MEDI_CRITERIO_DIMENSION setRHDHVARIABLEDIMENSION()    Sets the current record's "RH_DH_VARIABLE_DIMENSION" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_DH_MEDI_CRITERIO_DIMENSION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DH_MEDI_CRITERIO_DIMENSION');
        $this->hasColumn('id_medicion', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             '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('escala_evaluacion', 'integer', 9, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 9,
             ));
        $this->hasColumn('descripcion_escala', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $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'));
    }
}