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

/**
 * BaseRH_DH_FORMATO_ENCUESTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_formato
 * @property integer $numero_variables_desempeno
 * @property integer $numero_variables_dimension
 * @property string $nombre
 * @property string $estado
 * @property Doctrine_Collection $RH_DH_VALORES_DIMENSION
 * @property Doctrine_Collection $RH_DH_VALORES_DESEMPENO
 * @property Doctrine_Collection $RH_DH_TOTALES_DIMENSION
 * @property Doctrine_Collection $RH_DH_TOTALES_DESEMPENO
 * @property Doctrine_Collection $RH_DH_RESPUESTAS_DIMENSION
 * @property Doctrine_Collection $RH_DH_RESPUESTAS_DESEMPENO
 * @property Doctrine_Collection $RH_DH_FORMATO_DIMENSION
 * @property Doctrine_Collection $RH_DH_FORMATO_DESEMPENO
 * 
 * @method integer                getIdFormato()                  Returns the current record's "id_formato" value
 * @method integer                getNumeroVariablesDesempeno()   Returns the current record's "numero_variables_desempeno" value
 * @method integer                getNumeroVariablesDimension()   Returns the current record's "numero_variables_dimension" value
 * @method string                 getNombre()                     Returns the current record's "nombre" value
 * @method string                 getEstado()                     Returns the current record's "estado" value
 * @method Doctrine_Collection    getRHDHVALORESDIMENSION()       Returns the current record's "RH_DH_VALORES_DIMENSION" collection
 * @method Doctrine_Collection    getRHDHVALORESDESEMPENO()       Returns the current record's "RH_DH_VALORES_DESEMPENO" collection
 * @method Doctrine_Collection    getRHDHTOTALESDIMENSION()       Returns the current record's "RH_DH_TOTALES_DIMENSION" collection
 * @method Doctrine_Collection    getRHDHTOTALESDESEMPENO()       Returns the current record's "RH_DH_TOTALES_DESEMPENO" collection
 * @method Doctrine_Collection    getRHDHRESPUESTASDIMENSION()    Returns the current record's "RH_DH_RESPUESTAS_DIMENSION" collection
 * @method Doctrine_Collection    getRHDHRESPUESTASDESEMPENO()    Returns the current record's "RH_DH_RESPUESTAS_DESEMPENO" collection
 * @method Doctrine_Collection    getRHDHFORMATODIMENSION()       Returns the current record's "RH_DH_FORMATO_DIMENSION" collection
 * @method Doctrine_Collection    getRHDHFORMATODESEMPENO()       Returns the current record's "RH_DH_FORMATO_DESEMPENO" collection
 * @method RH_DH_FORMATO_ENCUESTA setIdFormato()                  Sets the current record's "id_formato" value
 * @method RH_DH_FORMATO_ENCUESTA setNumeroVariablesDesempeno()   Sets the current record's "numero_variables_desempeno" value
 * @method RH_DH_FORMATO_ENCUESTA setNumeroVariablesDimension()   Sets the current record's "numero_variables_dimension" value
 * @method RH_DH_FORMATO_ENCUESTA setNombre()                     Sets the current record's "nombre" value
 * @method RH_DH_FORMATO_ENCUESTA setEstado()                     Sets the current record's "estado" value
 * @method RH_DH_FORMATO_ENCUESTA setRHDHVALORESDIMENSION()       Sets the current record's "RH_DH_VALORES_DIMENSION" collection
 * @method RH_DH_FORMATO_ENCUESTA setRHDHVALORESDESEMPENO()       Sets the current record's "RH_DH_VALORES_DESEMPENO" collection
 * @method RH_DH_FORMATO_ENCUESTA setRHDHTOTALESDIMENSION()       Sets the current record's "RH_DH_TOTALES_DIMENSION" collection
 * @method RH_DH_FORMATO_ENCUESTA setRHDHTOTALESDESEMPENO()       Sets the current record's "RH_DH_TOTALES_DESEMPENO" collection
 * @method RH_DH_FORMATO_ENCUESTA setRHDHRESPUESTASDIMENSION()    Sets the current record's "RH_DH_RESPUESTAS_DIMENSION" collection
 * @method RH_DH_FORMATO_ENCUESTA setRHDHRESPUESTASDESEMPENO()    Sets the current record's "RH_DH_RESPUESTAS_DESEMPENO" collection
 * @method RH_DH_FORMATO_ENCUESTA setRHDHFORMATODIMENSION()       Sets the current record's "RH_DH_FORMATO_DIMENSION" collection
 * @method RH_DH_FORMATO_ENCUESTA setRHDHFORMATODESEMPENO()       Sets the current record's "RH_DH_FORMATO_DESEMPENO" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_DH_FORMATO_ENCUESTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_DH_FORMATO_ENCUESTA');
        $this->hasColumn('id_formato', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('numero_variables_desempeno', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('numero_variables_dimension', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('estado', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('RH_DH_VALORES_DESEMPENO', array(
             'local' => 'id_formato',
             'foreign' => 'id_formato'));

        $this->hasMany('RH_DH_TOTALES_DIMENSION', array(
             'local' => 'id_formato',
             'foreign' => 'id_formato'));

        $this->hasMany('RH_DH_TOTALES_DESEMPENO', array(
             'local' => 'id_formato',
             'foreign' => 'id_formato'));

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

        $this->hasMany('RH_DH_RESPUESTAS_DESEMPENO', array(
             'local' => 'id_formato',
             'foreign' => 'id_formato'));

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

        $this->hasMany('RH_DH_FORMATO_DESEMPENO', array(
             'local' => 'id_formato',
             'foreign' => 'id_formato'));
    }
}