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

/**
 * BaseRH_EN_REGISTRO_ENCUESTA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_reg_enc
 * @property integer $numero
 * @property integer $id_tipo_contrato
 * @property integer $id_nivel_jerarquico
 * @property integer $region
 * @property string $sexo
 * @property integer $id_antiguedad
 * @property integer $id_nivel_cargo
 * @property integer $id_edad
 * @property integer $id_area
 * @property integer $id_formato
 * @property string $comentario
 * @property ANTIGUEDAD $ANTIGUEDAD
 * @property AREA $AREA
 * @property EDAD $EDAD
 * @property FORMATO $FORMATO
 * @property NIVEL_JERARQUICO $NIVEL_JERARQUICO
 * @property NIVEL_CARGO $NIVEL_CARGO
 * @property REGIONES $REGIONES
 * @property TIPO_CONTRATO $TIPO_CONTRATO
 * 
 * @method integer                 getIdRegEnc()            Returns the current record's "id_reg_enc" value
 * @method integer                 getNumero()              Returns the current record's "numero" value
 * @method integer                 getIdTipoContrato()      Returns the current record's "id_tipo_contrato" value
 * @method integer                 getIdNivelJerarquico()   Returns the current record's "id_nivel_jerarquico" value
 * @method integer                 getRegion()              Returns the current record's "region" value
 * @method string                  getSexo()                Returns the current record's "sexo" value
 * @method integer                 getIdAntiguedad()        Returns the current record's "id_antiguedad" value
 * @method integer                 getIdNivelCargo()        Returns the current record's "id_nivel_cargo" value
 * @method integer                 getIdEdad()              Returns the current record's "id_edad" value
 * @method integer                 getIdArea()              Returns the current record's "id_area" value
 * @method integer                 getIdFormato()           Returns the current record's "id_formato" value
 * @method string                  getComentario()          Returns the current record's "comentario" value
 * @method ANTIGUEDAD              getANTIGUEDAD()          Returns the current record's "ANTIGUEDAD" value
 * @method AREA                    getAREA()                Returns the current record's "AREA" value
 * @method EDAD                    getEDAD()                Returns the current record's "EDAD" value
 * @method FORMATO                 getFORMATO()             Returns the current record's "FORMATO" value
 * @method NIVEL_JERARQUICO        getNIVELJERARQUICO()     Returns the current record's "NIVEL_JERARQUICO" value
 * @method NIVEL_CARGO             getNIVELCARGO()          Returns the current record's "NIVEL_CARGO" value
 * @method REGIONES                getREGIONES()            Returns the current record's "REGIONES" value
 * @method TIPO_CONTRATO           getTIPOCONTRATO()        Returns the current record's "TIPO_CONTRATO" value
 * @method RH_EN_REGISTRO_ENCUESTA setIdRegEnc()            Sets the current record's "id_reg_enc" value
 * @method RH_EN_REGISTRO_ENCUESTA setNumero()              Sets the current record's "numero" value
 * @method RH_EN_REGISTRO_ENCUESTA setIdTipoContrato()      Sets the current record's "id_tipo_contrato" value
 * @method RH_EN_REGISTRO_ENCUESTA setIdNivelJerarquico()   Sets the current record's "id_nivel_jerarquico" value
 * @method RH_EN_REGISTRO_ENCUESTA setRegion()              Sets the current record's "region" value
 * @method RH_EN_REGISTRO_ENCUESTA setSexo()                Sets the current record's "sexo" value
 * @method RH_EN_REGISTRO_ENCUESTA setIdAntiguedad()        Sets the current record's "id_antiguedad" value
 * @method RH_EN_REGISTRO_ENCUESTA setIdNivelCargo()        Sets the current record's "id_nivel_cargo" value
 * @method RH_EN_REGISTRO_ENCUESTA setIdEdad()              Sets the current record's "id_edad" value
 * @method RH_EN_REGISTRO_ENCUESTA setIdArea()              Sets the current record's "id_area" value
 * @method RH_EN_REGISTRO_ENCUESTA setIdFormato()           Sets the current record's "id_formato" value
 * @method RH_EN_REGISTRO_ENCUESTA setComentario()          Sets the current record's "comentario" value
 * @method RH_EN_REGISTRO_ENCUESTA setANTIGUEDAD()          Sets the current record's "ANTIGUEDAD" value
 * @method RH_EN_REGISTRO_ENCUESTA setAREA()                Sets the current record's "AREA" value
 * @method RH_EN_REGISTRO_ENCUESTA setEDAD()                Sets the current record's "EDAD" value
 * @method RH_EN_REGISTRO_ENCUESTA setFORMATO()             Sets the current record's "FORMATO" value
 * @method RH_EN_REGISTRO_ENCUESTA setNIVELJERARQUICO()     Sets the current record's "NIVEL_JERARQUICO" value
 * @method RH_EN_REGISTRO_ENCUESTA setNIVELCARGO()          Sets the current record's "NIVEL_CARGO" value
 * @method RH_EN_REGISTRO_ENCUESTA setREGIONES()            Sets the current record's "REGIONES" value
 * @method RH_EN_REGISTRO_ENCUESTA setTIPOCONTRATO()        Sets the current record's "TIPO_CONTRATO" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRH_EN_REGISTRO_ENCUESTA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RH_EN_REGISTRO_ENCUESTA');
        $this->hasColumn('id_reg_enc', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('numero', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_contrato', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_nivel_jerarquico', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('region', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('sexo', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_antiguedad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_nivel_cargo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_edad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_area', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_formato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('comentario', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
    }

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

        $this->hasOne('AREA', array(
             'local' => 'id_area',
             'foreign' => 'id_area'));

        $this->hasOne('EDAD', array(
             'local' => 'id_edad',
             'foreign' => 'id_edad'));

        $this->hasOne('FORMATO', array(
             'local' => 'id_formato',
             'foreign' => 'id_formato'));

        $this->hasOne('NIVEL_JERARQUICO', array(
             'local' => 'id_nivel_jerarquico',
             'foreign' => 'id_nivel_jerarquico'));

        $this->hasOne('NIVEL_CARGO', array(
             'local' => 'id_nivel_cargo',
             'foreign' => 'id_nivel_cargo'));

        $this->hasOne('REGIONES', array(
             'local' => 'region',
             'foreign' => 'id_region'));

        $this->hasOne('TIPO_CONTRATO', array(
             'local' => 'id_tipo_contrato',
             'foreign' => 'id_tipo_contrato'));
    }
}