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

/**
 * BaseRH_DH_VARIABLE_DIMENSION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_variable_dimension
 * @property string $nombre
 * @property integer $numero_criterios
 * @property decimal $valor_porcentaje
 * @property integer $codigo_formato
 * @property Doctrine_Collection $RH_DH_VALORES_DIMENSION
 * @property Doctrine_Collection $RH_DH_RESPUESTAS_DIMENSION
 * @property Doctrine_Collection $RH_DH_MEDI_CRITERIO_DIMENSION
 * @property Doctrine_Collection $RH_DH_FORMATO_DIMENSION
 * @property Doctrine_Collection $RH_DH_CRITERIO_DIMENSION
 * 
 * @method integer                  getIdVariableDimension()           Returns the current record's "id_variable_dimension" value
 * @method string                   getNombre()                        Returns the current record's "nombre" value
 * @method integer                  getNumeroCriterios()               Returns the current record's "numero_criterios" value
 * @method decimal                  getValorPorcentaje()               Returns the current record's "valor_porcentaje" value
 * @method integer                  getCodigoFormato()                 Returns the current record's "codigo_formato" value
 * @method Doctrine_Collection      getRHDHVALORESDIMENSION()          Returns the current record's "RH_DH_VALORES_DIMENSION" collection
 * @method Doctrine_Collection      getRHDHRESPUESTASDIMENSION()       Returns the current record's "RH_DH_RESPUESTAS_DIMENSION" collection
 * @method Doctrine_Collection      getRHDHMEDICRITERIODIMENSION()     Returns the current record's "RH_DH_MEDI_CRITERIO_DIMENSION" collection
 * @method Doctrine_Collection      getRHDHFORMATODIMENSION()          Returns the current record's "RH_DH_FORMATO_DIMENSION" collection
 * @method Doctrine_Collection      getRHDHCRITERIODIMENSION()         Returns the current record's "RH_DH_CRITERIO_DIMENSION" collection
 * @method RH_DH_VARIABLE_DIMENSION setIdVariableDimension()           Sets the current record's "id_variable_dimension" value
 * @method RH_DH_VARIABLE_DIMENSION setNombre()                        Sets the current record's "nombre" value
 * @method RH_DH_VARIABLE_DIMENSION setNumeroCriterios()               Sets the current record's "numero_criterios" value
 * @method RH_DH_VARIABLE_DIMENSION setValorPorcentaje()               Sets the current record's "valor_porcentaje" value
 * @method RH_DH_VARIABLE_DIMENSION setCodigoFormato()                 Sets the current record's "codigo_formato" value
 * @method RH_DH_VARIABLE_DIMENSION setRHDHVALORESDIMENSION()          Sets the current record's "RH_DH_VALORES_DIMENSION" collection
 * @method RH_DH_VARIABLE_DIMENSION setRHDHRESPUESTASDIMENSION()       Sets the current record's "RH_DH_RESPUESTAS_DIMENSION" collection
 * @method RH_DH_VARIABLE_DIMENSION setRHDHMEDICRITERIODIMENSION()     Sets the current record's "RH_DH_MEDI_CRITERIO_DIMENSION" collection
 * @method RH_DH_VARIABLE_DIMENSION setRHDHFORMATODIMENSION()          Sets the current record's "RH_DH_FORMATO_DIMENSION" collection
 * @method RH_DH_VARIABLE_DIMENSION setRHDHCRITERIODIMENSION()         Sets the current record's "RH_DH_CRITERIO_DIMENSION" collection
 * 
 * @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_VARIABLE_DIMENSION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DH_VARIABLE_DIMENSION');
        $this->hasColumn('id_variable_dimension', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('numero_criterios', 'integer', 9, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 9,
             ));
        $this->hasColumn('valor_porcentaje', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('codigo_formato', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('RH_DH_VALORES_DIMENSION', array(
             'local' => 'id_variable_dimension',
             'foreign' => 'id_variable_dimension'));

        $this->hasMany('RH_DH_RESPUESTAS_DIMENSION', array(
             'local' => 'id_variable_dimension',
             'foreign' => 'id_variable_dimension'));

        $this->hasMany('RH_DH_MEDI_CRITERIO_DIMENSION', array(
             'local' => 'id_variable_dimension',
             'foreign' => 'id_variable_dimension'));

        $this->hasMany('RH_DH_FORMATO_DIMENSION', array(
             'local' => 'id_variable_dimension',
             'foreign' => 'id_dimension'));

        $this->hasMany('RH_DH_CRITERIO_DIMENSION', array(
             'local' => 'id_variable_dimension',
             'foreign' => 'id_variable_dimension'));
    }
}