<?php

// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('CO_ESTUDIOS_PREVIOS', 'doctrine');

/**
 * BaseCO_ESTUDIOS_PREVIOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_estudios_previos
 * @property integer $no_proceso
 * @property integer $responsable
 * @property integer $id_abogado
 * @property timestamp $fecha_creacion
 * @property integer $id_modalidad_sel
 * @property integer $estado
 * @property integer $activo
 * @property timestamp $fecha_anu
 * @property string $motivo_anu
 * @property integer $id_cen_op
 * @property integer $id_anhos
 * @property integer $version
 * @property integer $id_area
 * @property integer $valor
 * @property integer $id_supervisor
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property CO_ABOGADO $CO_ABOGADO
 * @property CO_MODALIDAD_SEL $CO_MODALIDAD_SEL
 * @property INTERCEROS $INTERCEROS
 * @property Doctrine_Collection $CO_SELECCION_EP
 * @property Doctrine_Collection $CO_PASO_EP
 * @property Doctrine_Collection $CO_GARANTIA_EP
 * @property Doctrine_Collection $CO_FIRMA_EP
 * @property Doctrine_Collection $CO_DOCUMENTO_EP
 * @property Doctrine_Collection $CO_DETALLE_EP
 * 
 * @method integer             getIdEstudiosPrevios()   Returns the current record's "id_estudios_previos" value
 * @method integer             getNoProceso()           Returns the current record's "no_proceso" value
 * @method integer             getResponsable()         Returns the current record's "responsable" value
 * @method integer             getIdAbogado()           Returns the current record's "id_abogado" value
 * @method timestamp           getFechaCreacion()       Returns the current record's "fecha_creacion" value
 * @method integer             getIdModalidadSel()      Returns the current record's "id_modalidad_sel" value
 * @method integer             getEstado()              Returns the current record's "estado" value
 * @method integer             getActivo()              Returns the current record's "activo" value
 * @method timestamp           getFechaAnu()            Returns the current record's "fecha_anu" value
 * @method string              getMotivoAnu()           Returns the current record's "motivo_anu" value
 * @method integer             getIdCenOp()             Returns the current record's "id_cen_op" value
 * @method integer             getIdAnhos()             Returns the current record's "id_anhos" value
 * @method integer             getVersion()             Returns the current record's "version" value
 * @method integer             getIdArea()              Returns the current record's "id_area" value
 * @method integer             getValor()               Returns the current record's "valor" value
 * @method integer             getIdSupervisor()        Returns the current record's "id_supervisor" value
 * @method CENTRO_OPERACION    getCENTROOPERACION()     Returns the current record's "CENTRO_OPERACION" value
 * @method CO_ABOGADO          getCOABOGADO()           Returns the current record's "CO_ABOGADO" value
 * @method CO_MODALIDAD_SEL    getCOMODALIDADSEL()      Returns the current record's "CO_MODALIDAD_SEL" value
 * @method INTERCEROS          getINTERCEROS()          Returns the current record's "INTERCEROS" value
 * @method Doctrine_Collection getCOSELECCIONEP()       Returns the current record's "CO_SELECCION_EP" collection
 * @method Doctrine_Collection getCOPASOEP()            Returns the current record's "CO_PASO_EP" collection
 * @method Doctrine_Collection getCOGARANTIAEP()        Returns the current record's "CO_GARANTIA_EP" collection
 * @method Doctrine_Collection getCOFIRMAEP()           Returns the current record's "CO_FIRMA_EP" collection
 * @method Doctrine_Collection getCODOCUMENTOEP()       Returns the current record's "CO_DOCUMENTO_EP" collection
 * @method Doctrine_Collection getCODETALLEEP()         Returns the current record's "CO_DETALLE_EP" collection
 * @method CO_ESTUDIOS_PREVIOS setIdEstudiosPrevios()   Sets the current record's "id_estudios_previos" value
 * @method CO_ESTUDIOS_PREVIOS setNoProceso()           Sets the current record's "no_proceso" value
 * @method CO_ESTUDIOS_PREVIOS setResponsable()         Sets the current record's "responsable" value
 * @method CO_ESTUDIOS_PREVIOS setIdAbogado()           Sets the current record's "id_abogado" value
 * @method CO_ESTUDIOS_PREVIOS setFechaCreacion()       Sets the current record's "fecha_creacion" value
 * @method CO_ESTUDIOS_PREVIOS setIdModalidadSel()      Sets the current record's "id_modalidad_sel" value
 * @method CO_ESTUDIOS_PREVIOS setEstado()              Sets the current record's "estado" value
 * @method CO_ESTUDIOS_PREVIOS setActivo()              Sets the current record's "activo" value
 * @method CO_ESTUDIOS_PREVIOS setFechaAnu()            Sets the current record's "fecha_anu" value
 * @method CO_ESTUDIOS_PREVIOS setMotivoAnu()           Sets the current record's "motivo_anu" value
 * @method CO_ESTUDIOS_PREVIOS setIdCenOp()             Sets the current record's "id_cen_op" value
 * @method CO_ESTUDIOS_PREVIOS setIdAnhos()             Sets the current record's "id_anhos" value
 * @method CO_ESTUDIOS_PREVIOS setVersion()             Sets the current record's "version" value
 * @method CO_ESTUDIOS_PREVIOS setIdArea()              Sets the current record's "id_area" value
 * @method CO_ESTUDIOS_PREVIOS setValor()               Sets the current record's "valor" value
 * @method CO_ESTUDIOS_PREVIOS setIdSupervisor()        Sets the current record's "id_supervisor" value
 * @method CO_ESTUDIOS_PREVIOS setCENTROOPERACION()     Sets the current record's "CENTRO_OPERACION" value
 * @method CO_ESTUDIOS_PREVIOS setCOABOGADO()           Sets the current record's "CO_ABOGADO" value
 * @method CO_ESTUDIOS_PREVIOS setCOMODALIDADSEL()      Sets the current record's "CO_MODALIDAD_SEL" value
 * @method CO_ESTUDIOS_PREVIOS setINTERCEROS()          Sets the current record's "INTERCEROS" value
 * @method CO_ESTUDIOS_PREVIOS setCOSELECCIONEP()       Sets the current record's "CO_SELECCION_EP" collection
 * @method CO_ESTUDIOS_PREVIOS setCOPASOEP()            Sets the current record's "CO_PASO_EP" collection
 * @method CO_ESTUDIOS_PREVIOS setCOGARANTIAEP()        Sets the current record's "CO_GARANTIA_EP" collection
 * @method CO_ESTUDIOS_PREVIOS setCOFIRMAEP()           Sets the current record's "CO_FIRMA_EP" collection
 * @method CO_ESTUDIOS_PREVIOS setCODOCUMENTOEP()       Sets the current record's "CO_DOCUMENTO_EP" collection
 * @method CO_ESTUDIOS_PREVIOS setCODETALLEEP()         Sets the current record's "CO_DETALLE_EP" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCO_ESTUDIOS_PREVIOS extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('CO_ESTUDIOS_PREVIOS');
        $this->hasColumn('id_estudios_previos', 'integer', 20, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 20,
        ));
        $this->hasColumn('no_proceso', 'integer', 20, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('responsable', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('id_abogado', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('fecha_creacion', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('id_modalidad_sel', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('estado', 'integer', 1, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));
        $this->hasColumn('activo', 'integer', 1, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));
        $this->hasColumn('fecha_anu', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('motivo_anu', 'string', 500, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 500,
        ));
        $this->hasColumn('id_cen_op', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('version', '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('valor', 'integer', 20, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('id_supervisor', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('fecha_cierre', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('descripcion', 'string', 500, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 500,
        ));


        $this->hasColumn('codigopaa', 'string', 20, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));


        $this->hasColumn('estado_general', 'integer', 1, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));

        $this->hasColumn('fecha_aprobado', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));



        $this->hasColumn('estado_objeto_iguales', 'integer', 1, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));

        $this->hasColumn('fec_est_obj_igu_pen', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));


        $this->hasColumn('fec_est_obj_igu_vob', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));


        $this->hasColumn('fec_est_obj_igu_apr', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));

        $this->hasColumn('fec_est_obj_igu_rec', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));


        $this->hasColumn('estado_ep_general', 'integer', 1, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));



        $this->hasColumn('fec_est_ep_gen_pen', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));


        $this->hasColumn('fec_est_ep_gen_vob', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));


        $this->hasColumn('fec_est_ep_gen_aut', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));


        $this->hasColumn('fec_est_ep_gen_rec', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('observacion_version', 'string', 4000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 4000,
        ));
        $this->hasColumn('tipobolsa', 'string', 100, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 100,
        ));
        $this->hasColumn('usuario_est_obj_igu_pen', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('usuario_est_obj_igu_vob', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('usuario_est_obj_igu_apr', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('usuario_est_obj_igu_rec', 'integer', 20, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
    }

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

        $this->hasOne('CO_ABOGADO', array(
            'local' => 'id_abogado',
            'foreign' => 'id_abogado'));

        $this->hasOne('CO_MODALIDAD_SEL', array(
            'local' => 'id_modalidad_sel',
            'foreign' => 'id_modalidad_sel'));

        $this->hasOne('INTERCEROS', array(
            'local' => 'responsable',
            'foreign' => 'id_mae_ter'));

        $this->hasMany('CO_SELECCION_EP', array(
            'local' => 'id_estudios_previos',
            'foreign' => 'id_estudios_previos'));

        $this->hasMany('CO_PASO_EP', array(
            'local' => 'id_estudios_previos',
            'foreign' => 'id_estudios_previos'));

        $this->hasMany('CO_GARANTIA_EP', array(
            'local' => 'id_estudios_previos',
            'foreign' => 'id_estudios_previos'));

        $this->hasMany('CO_FIRMA_EP', array(
            'local' => 'id_estudios_previos',
            'foreign' => 'id_estudios_previos'));

        $this->hasMany('CO_DOCUMENTO_EP', array(
            'local' => 'id_estudios_previos',
            'foreign' => 'id_estudios_previos'));

        $this->hasMany('CO_DETALLE_EP', array(
            'local' => 'id_estudios_previos',
            'foreign' => 'id_estudios_previos'));
    }

}
