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

/**
 * BaseRH_DH_CRITERIO_DIMENSION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_criterio_dimension
 * @property string $descripcion
 * @property integer $id_variable_dimension
 * @property integer $numero_escalas
 * @property RH_DH_VARIABLE_DIMENSION $RH_DH_VARIABLE_DIMENSION
 * @property Doctrine_Collection $RH_DH_RESPUESTAS_DIMENSION
 * @property Doctrine_Collection $RH_DH_MEDI_CRITERIO_DIMENSION
 * 
 * @method integer                  getIdCriterioDimension()           Returns the current record's "id_criterio_dimension" value
 * @method string                   getDescripcion()                   Returns the current record's "descripcion" value
 * @method integer                  getIdVariableDimension()           Returns the current record's "id_variable_dimension" value
 * @method integer                  getNumeroEscalas()                 Returns the current record's "numero_escalas" value
 * @method RH_DH_VARIABLE_DIMENSION getRHDHVARIABLEDIMENSION()         Returns the current record's "RH_DH_VARIABLE_DIMENSION" value
 * @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 RH_DH_CRITERIO_DIMENSION setIdCriterioDimension()           Sets the current record's "id_criterio_dimension" value
 * @method RH_DH_CRITERIO_DIMENSION setDescripcion()                   Sets the current record's "descripcion" value
 * @method RH_DH_CRITERIO_DIMENSION setIdVariableDimension()           Sets the current record's "id_variable_dimension" value
 * @method RH_DH_CRITERIO_DIMENSION setNumeroEscalas()                 Sets the current record's "numero_escalas" value
 * @method RH_DH_CRITERIO_DIMENSION setRHDHVARIABLEDIMENSION()         Sets the current record's "RH_DH_VARIABLE_DIMENSION" value
 * @method RH_DH_CRITERIO_DIMENSION setRHDHRESPUESTASDIMENSION()       Sets the current record's "RH_DH_RESPUESTAS_DIMENSION" collection
 * @method RH_DH_CRITERIO_DIMENSION setRHDHMEDICRITERIODIMENSION()     Sets the current record's "RH_DH_MEDI_CRITERIO_DIMENSION" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_DH_CRITERIO_DIMENSION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DH_CRITERIO_DIMENSION');
        $this->hasColumn('id_criterio_dimension', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_variable_dimension', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('numero_escalas', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

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

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