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

/**
 * BaseRMN_SOLICITUD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_solicitud
 * @property string $codigo_expediente
 * @property timestamp $fecha_creacion
 * @property timestamp $fecha_radicacion
 * @property string $numero_formulario
 * @property string $observacion
 * @property decimal $area_solicitada
 * @property string $justificacion_extemporanea
 * @property string $documento_soporte
 * @property decimal $area_definitiva
 * @property integer $id_tipo_captura_area
 * @property integer $id_competencia
 * @property integer $id_modalidad
 * @property integer $id_anterior
 * @property string $dir_correo
 * @property string $vereda
 * @property string $telefono_contacto
 * @property integer $id_municipio
 * @property string $desc_terminos_referencia
 * @property integer $id_est_jur_obs_est
 * @property RMN_COMPETENCIA $RMN_COMPETENCIA
 * @property RMN_MODALIDAD $RMN_MODALIDAD
 * @property RMN_TIPO_CAPTURA_AREA $RMN_TIPO_CAPTURA_AREA
 * @property RMN_MUNICIPIO $RMN_MUNICIPIO
 * @property Doctrine_Collection $RMN_SOLICITUD_PERSONA
 * 
 * @method integer               getIdSolicitud()                Returns the current record's "id_solicitud" value
 * @method string                getCodigoExpediente()           Returns the current record's "codigo_expediente" value
 * @method timestamp             getFechaCreacion()              Returns the current record's "fecha_creacion" value
 * @method timestamp             getFechaRadicacion()            Returns the current record's "fecha_radicacion" value
 * @method string                getNumeroFormulario()           Returns the current record's "numero_formulario" value
 * @method string                getObservacion()                Returns the current record's "observacion" value
 * @method decimal               getAreaSolicitada()             Returns the current record's "area_solicitada" value
 * @method string                getJustificacionExtemporanea()  Returns the current record's "justificacion_extemporanea" value
 * @method string                getDocumentoSoporte()           Returns the current record's "documento_soporte" value
 * @method decimal               getAreaDefinitiva()             Returns the current record's "area_definitiva" value
 * @method integer               getIdTipoCapturaArea()          Returns the current record's "id_tipo_captura_area" value
 * @method integer               getIdCompetencia()              Returns the current record's "id_competencia" value
 * @method integer               getIdModalidad()                Returns the current record's "id_modalidad" value
 * @method integer               getIdAnterior()                 Returns the current record's "id_anterior" value
 * @method string                getDirCorreo()                  Returns the current record's "dir_correo" value
 * @method string                getVereda()                     Returns the current record's "vereda" value
 * @method string                getTelefonoContacto()           Returns the current record's "telefono_contacto" value
 * @method integer               getIdMunicipio()                Returns the current record's "id_municipio" value
 * @method string                getDescTerminosReferencia()     Returns the current record's "desc_terminos_referencia" value
 * @method integer               getIdEstJurObsEst()             Returns the current record's "id_est_jur_obs_est" value
 * @method RMN_COMPETENCIA       getRMNCOMPETENCIA()             Returns the current record's "RMN_COMPETENCIA" value
 * @method RMN_MODALIDAD         getRMNMODALIDAD()               Returns the current record's "RMN_MODALIDAD" value
 * @method RMN_TIPO_CAPTURA_AREA getRMNTIPOCAPTURAAREA()         Returns the current record's "RMN_TIPO_CAPTURA_AREA" value
 * @method RMN_MUNICIPIO         getRMNMUNICIPIO()               Returns the current record's "RMN_MUNICIPIO" value
 * @method Doctrine_Collection   getRMNSOLICITUDPERSONA()        Returns the current record's "RMN_SOLICITUD_PERSONA" collection
 * @method RMN_SOLICITUD         setIdSolicitud()                Sets the current record's "id_solicitud" value
 * @method RMN_SOLICITUD         setCodigoExpediente()           Sets the current record's "codigo_expediente" value
 * @method RMN_SOLICITUD         setFechaCreacion()              Sets the current record's "fecha_creacion" value
 * @method RMN_SOLICITUD         setFechaRadicacion()            Sets the current record's "fecha_radicacion" value
 * @method RMN_SOLICITUD         setNumeroFormulario()           Sets the current record's "numero_formulario" value
 * @method RMN_SOLICITUD         setObservacion()                Sets the current record's "observacion" value
 * @method RMN_SOLICITUD         setAreaSolicitada()             Sets the current record's "area_solicitada" value
 * @method RMN_SOLICITUD         setJustificacionExtemporanea()  Sets the current record's "justificacion_extemporanea" value
 * @method RMN_SOLICITUD         setDocumentoSoporte()           Sets the current record's "documento_soporte" value
 * @method RMN_SOLICITUD         setAreaDefinitiva()             Sets the current record's "area_definitiva" value
 * @method RMN_SOLICITUD         setIdTipoCapturaArea()          Sets the current record's "id_tipo_captura_area" value
 * @method RMN_SOLICITUD         setIdCompetencia()              Sets the current record's "id_competencia" value
 * @method RMN_SOLICITUD         setIdModalidad()                Sets the current record's "id_modalidad" value
 * @method RMN_SOLICITUD         setIdAnterior()                 Sets the current record's "id_anterior" value
 * @method RMN_SOLICITUD         setDirCorreo()                  Sets the current record's "dir_correo" value
 * @method RMN_SOLICITUD         setVereda()                     Sets the current record's "vereda" value
 * @method RMN_SOLICITUD         setTelefonoContacto()           Sets the current record's "telefono_contacto" value
 * @method RMN_SOLICITUD         setIdMunicipio()                Sets the current record's "id_municipio" value
 * @method RMN_SOLICITUD         setDescTerminosReferencia()     Sets the current record's "desc_terminos_referencia" value
 * @method RMN_SOLICITUD         setIdEstJurObsEst()             Sets the current record's "id_est_jur_obs_est" value
 * @method RMN_SOLICITUD         setRMNCOMPETENCIA()             Sets the current record's "RMN_COMPETENCIA" value
 * @method RMN_SOLICITUD         setRMNMODALIDAD()               Sets the current record's "RMN_MODALIDAD" value
 * @method RMN_SOLICITUD         setRMNTIPOCAPTURAAREA()         Sets the current record's "RMN_TIPO_CAPTURA_AREA" value
 * @method RMN_SOLICITUD         setRMNMUNICIPIO()               Sets the current record's "RMN_MUNICIPIO" value
 * @method RMN_SOLICITUD         setRMNSOLICITUDPERSONA()        Sets the current record's "RMN_SOLICITUD_PERSONA" collection
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRMN_SOLICITUD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RMN_SOLICITUD');
        $this->hasColumn('id_solicitud', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('codigo_expediente', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_creacion', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'default' => 'sysdate ',
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_radicacion', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('numero_formulario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('observacion', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('area_solicitada', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('justificacion_extemporanea', 'string', 2000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2000,
             ));
        $this->hasColumn('documento_soporte', 'string', 2000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2000,
             ));
        $this->hasColumn('area_definitiva', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('id_tipo_captura_area', 'integer', 10, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('id_competencia', 'integer', 10, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('id_modalidad', 'integer', 10, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('id_anterior', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('dir_correo', 'string', 255, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 255,
             ));
        $this->hasColumn('vereda', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('telefono_contacto', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('id_municipio', 'integer', 10, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('desc_terminos_referencia', 'string', 2500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2500,
             ));
        $this->hasColumn('id_est_jur_obs_est', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('RMN_MODALIDAD', array(
             'local' => 'id_modalidad',
             'foreign' => 'id_modalidad'));

        $this->hasOne('RMN_TIPO_CAPTURA_AREA', array(
             'local' => 'id_tipo_captura_area',
             'foreign' => 'id_tipo_captura_area'));

        $this->hasOne('RMN_MUNICIPIO', array(
             'local' => 'id_municipio',
             'foreign' => 'id_municipio'));

        $this->hasMany('RMN_SOLICITUD_PERSONA', array(
             'local' => 'id_solicitud',
             'foreign' => 'id_solicitud'));
    }
}