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

/**
 * BaseEDUCACION_FORMAL
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_edu_esp
 * @property integer $id_actividad
 * @property integer $id_tipo_estudio
 * @property string $nombre
 * @property string $contenido
 * @property string $comision_estudio
 * @property integer $pais
 * @property string $ciudad
 * @property integer $departamento
 * @property integer $municipio
 * @property string $valor_matricula
 * @property string $valos_aprobado
 * @property timestamp $fecha_inicio
 * @property timestamp $fecha_fin
 * @property string $nombre_entidad
 * @property string $nit_entidad
 * @property string $path_admision
 * @property string $path_solicitud
 * @property string $curso
 * @property DEPARTAMENTO $DEPARTAMENTO
 * @property MUNICIPIOS $MUNICIPIOS
 * @property PAIS $PAIS
 * @property TIPO_ESTUDIO $TIPO_ESTUDIO
 * 
 * @method integer          getIdEduEsp()         Returns the current record's "id_edu_esp" value
 * @method integer          getIdActividad()      Returns the current record's "id_actividad" value
 * @method integer          getIdTipoEstudio()    Returns the current record's "id_tipo_estudio" value
 * @method string           getNombre()           Returns the current record's "nombre" value
 * @method string           getContenido()        Returns the current record's "contenido" value
 * @method string           getComisionEstudio()  Returns the current record's "comision_estudio" value
 * @method integer          getPais()             Returns the current record's "pais" value
 * @method string           getCiudad()           Returns the current record's "ciudad" value
 * @method integer          getDepartamento()     Returns the current record's "departamento" value
 * @method integer          getMunicipio()        Returns the current record's "municipio" value
 * @method string           getValorMatricula()   Returns the current record's "valor_matricula" value
 * @method string           getValosAprobado()    Returns the current record's "valos_aprobado" value
 * @method timestamp        getFechaInicio()      Returns the current record's "fecha_inicio" value
 * @method timestamp        getFechaFin()         Returns the current record's "fecha_fin" value
 * @method string           getNombreEntidad()    Returns the current record's "nombre_entidad" value
 * @method string           getNitEntidad()       Returns the current record's "nit_entidad" value
 * @method string           getPathAdmision()     Returns the current record's "path_admision" value
 * @method string           getPathSolicitud()    Returns the current record's "path_solicitud" value
 * @method string           getCurso()            Returns the current record's "curso" value
 * @method DEPARTAMENTO     getDEPARTAMENTO()     Returns the current record's "DEPARTAMENTO" value
 * @method MUNICIPIOS       getMUNICIPIOS()       Returns the current record's "MUNICIPIOS" value
 * @method PAIS             getPAIS()             Returns the current record's "PAIS" value
 * @method TIPO_ESTUDIO     getTIPOESTUDIO()      Returns the current record's "TIPO_ESTUDIO" value
 * @method EDUCACION_FORMAL setIdEduEsp()         Sets the current record's "id_edu_esp" value
 * @method EDUCACION_FORMAL setIdActividad()      Sets the current record's "id_actividad" value
 * @method EDUCACION_FORMAL setIdTipoEstudio()    Sets the current record's "id_tipo_estudio" value
 * @method EDUCACION_FORMAL setNombre()           Sets the current record's "nombre" value
 * @method EDUCACION_FORMAL setContenido()        Sets the current record's "contenido" value
 * @method EDUCACION_FORMAL setComisionEstudio()  Sets the current record's "comision_estudio" value
 * @method EDUCACION_FORMAL setPais()             Sets the current record's "pais" value
 * @method EDUCACION_FORMAL setCiudad()           Sets the current record's "ciudad" value
 * @method EDUCACION_FORMAL setDepartamento()     Sets the current record's "departamento" value
 * @method EDUCACION_FORMAL setMunicipio()        Sets the current record's "municipio" value
 * @method EDUCACION_FORMAL setValorMatricula()   Sets the current record's "valor_matricula" value
 * @method EDUCACION_FORMAL setValosAprobado()    Sets the current record's "valos_aprobado" value
 * @method EDUCACION_FORMAL setFechaInicio()      Sets the current record's "fecha_inicio" value
 * @method EDUCACION_FORMAL setFechaFin()         Sets the current record's "fecha_fin" value
 * @method EDUCACION_FORMAL setNombreEntidad()    Sets the current record's "nombre_entidad" value
 * @method EDUCACION_FORMAL setNitEntidad()       Sets the current record's "nit_entidad" value
 * @method EDUCACION_FORMAL setPathAdmision()     Sets the current record's "path_admision" value
 * @method EDUCACION_FORMAL setPathSolicitud()    Sets the current record's "path_solicitud" value
 * @method EDUCACION_FORMAL setCurso()            Sets the current record's "curso" value
 * @method EDUCACION_FORMAL setDEPARTAMENTO()     Sets the current record's "DEPARTAMENTO" value
 * @method EDUCACION_FORMAL setMUNICIPIOS()       Sets the current record's "MUNICIPIOS" value
 * @method EDUCACION_FORMAL setPAIS()             Sets the current record's "PAIS" value
 * @method EDUCACION_FORMAL setTIPOESTUDIO()      Sets the current record's "TIPO_ESTUDIO" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseEDUCACION_FORMAL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('EDUCACION_FORMAL');
        $this->hasColumn('id_edu_esp', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_actividad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_estudio', 'integer', 20, array(
             'notnull' => true,
             '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('contenido', 'string', 2000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2000,
             ));
        $this->hasColumn('comision_estudio', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('pais', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('ciudad', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('departamento', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('municipio', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_matricula', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valos_aprobado', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_inicio', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('nombre_entidad', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('nit_entidad', 'string', 9, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 9,
             ));
        $this->hasColumn('path_admision', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('path_solicitud', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('curso', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('MUNICIPIOS', array(
             'local' => 'municipio',
             'foreign' => 'codmun'));

        $this->hasOne('PAIS', array(
             'local' => 'pais',
             'foreign' => 'id_pais'));

        $this->hasOne('TIPO_ESTUDIO', array(
             'local' => 'id_tipo_estudio',
             'foreign' => 'id_tipo_estudio'));
    }
}