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

/**
 * BaseIN_COTIZACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cotizacion
 * @property integer $id_cen_op
 * @property integer $id_vigencia
 * @property integer $id_soli_compra
 * @property integer $id_mae_ter
 * @property timestamp $fecha_cotizacion
 * @property integer $dias_validez
 * @property timestamp $fecha_vence
 * @property integer $id_tip_mon
 * @property integer $garantia
 * @property integer $id_periodo_garantia
 * @property integer $id_periodo_entrega
 * @property decimal $descuento
 * @property decimal $valor_iva
 * @property string $sitio_entrega
 * @property string $forma_pago
 * @property string $observaciones
 * @property integer $estado
 * @property integer $anulado
 * @property timestamp $fecha_anu
 * @property string $motivo_anu
 * @property integer $id_usuario_anu
 * @property decimal $valor_total
 * @property integer $entrega
 * @property decimal $valor_neto
 * @property PERIODO_TIEMPO $PERIODO_TIEMPO
 * @property PERIODO_TIEMPO $PERIODO_TIEMPO_2
 * @property INTERCEROS $INTERCEROS
 * @property CA_TIP_MON $CA_TIP_MON
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA_7
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA_8
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA_9
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA_10
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA_11
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA_12
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA_13
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA_14
 * @property Doctrine_Collection $IN_DET_COTIZACION
 * @property Doctrine_Collection $IN_DET_COTIZACION_2
 * @property Doctrine_Collection $IN_DET_COTIZACION_3
 * @property Doctrine_Collection $IN_DET_COTIZACION_4
 * @property Doctrine_Collection $IN_DET_COTIZACION_5
 * @property Doctrine_Collection $IN_DET_COTIZACION_6
 * @property Doctrine_Collection $IN_DET_COTIZACION_7
 * @property Doctrine_Collection $IN_DET_COTIZACION_8
 * @property Doctrine_Collection $IN_DET_COTIZACION_9
 * @property Doctrine_Collection $IN_CONTRATO
 * @property Doctrine_Collection $IN_CONTRATO_2
 * @property Doctrine_Collection $IN_CONTRATO_3
 * @property Doctrine_Collection $IN_CONTRATO_4
 * @property Doctrine_Collection $IN_CONTRATO_5
 * @property Doctrine_Collection $IN_CONTRATO_6
 * @property Doctrine_Collection $IN_CONTRATO_7
 * @property Doctrine_Collection $IN_CONTRATO_8
 * @property Doctrine_Collection $IN_CONTRATO_9
 * 
 * @method integer             getIdCotizacion()        Returns the current record's "id_cotizacion" value
 * @method integer             getIdCenOp()             Returns the current record's "id_cen_op" value
 * @method integer             getIdVigencia()          Returns the current record's "id_vigencia" value
 * @method integer             getIdSoliCompra()        Returns the current record's "id_soli_compra" value
 * @method integer             getIdMaeTer()            Returns the current record's "id_mae_ter" value
 * @method timestamp           getFechaCotizacion()     Returns the current record's "fecha_cotizacion" value
 * @method integer             getDiasValidez()         Returns the current record's "dias_validez" value
 * @method timestamp           getFechaVence()          Returns the current record's "fecha_vence" value
 * @method integer             getIdTipMon()            Returns the current record's "id_tip_mon" value
 * @method integer             getGarantia()            Returns the current record's "garantia" value
 * @method integer             getIdPeriodoGarantia()   Returns the current record's "id_periodo_garantia" value
 * @method integer             getIdPeriodoEntrega()    Returns the current record's "id_periodo_entrega" value
 * @method decimal             getDescuento()           Returns the current record's "descuento" value
 * @method decimal             getValorIva()            Returns the current record's "valor_iva" value
 * @method string              getSitioEntrega()        Returns the current record's "sitio_entrega" value
 * @method string              getFormaPago()           Returns the current record's "forma_pago" value
 * @method string              getObservaciones()       Returns the current record's "observaciones" value
 * @method integer             getEstado()              Returns the current record's "estado" value
 * @method integer             getAnulado()             Returns the current record's "anulado" 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             getIdUsuarioAnu()        Returns the current record's "id_usuario_anu" value
 * @method decimal             getValorTotal()          Returns the current record's "valor_total" value
 * @method integer             getEntrega()             Returns the current record's "entrega" value
 * @method decimal             getValorNeto()           Returns the current record's "valor_neto" value
 * @method PERIODO_TIEMPO      getPERIODOTIEMPO()       Returns the current record's "PERIODO_TIEMPO" value
 * @method PERIODO_TIEMPO      getPERIODOTIEMPO2()      Returns the current record's "PERIODO_TIEMPO_2" value
 * @method INTERCEROS          getINTERCEROS()          Returns the current record's "INTERCEROS" value
 * @method CA_TIP_MON          getCATIPMON()            Returns the current record's "CA_TIP_MON" value
 * @method CENTRO_OPERACION    getCENTROOPERACION()     Returns the current record's "CENTRO_OPERACION" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA()        Returns the current record's "IN_SOLI_COMPRA" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA7()       Returns the current record's "IN_SOLI_COMPRA_7" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA8()       Returns the current record's "IN_SOLI_COMPRA_8" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA9()       Returns the current record's "IN_SOLI_COMPRA_9" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA10()      Returns the current record's "IN_SOLI_COMPRA_10" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA11()      Returns the current record's "IN_SOLI_COMPRA_11" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA12()      Returns the current record's "IN_SOLI_COMPRA_12" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA13()      Returns the current record's "IN_SOLI_COMPRA_13" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA14()      Returns the current record's "IN_SOLI_COMPRA_14" value
 * @method Doctrine_Collection getINDETCOTIZACION()     Returns the current record's "IN_DET_COTIZACION" collection
 * @method Doctrine_Collection getINDETCOTIZACION2()    Returns the current record's "IN_DET_COTIZACION_2" collection
 * @method Doctrine_Collection getINDETCOTIZACION3()    Returns the current record's "IN_DET_COTIZACION_3" collection
 * @method Doctrine_Collection getINDETCOTIZACION4()    Returns the current record's "IN_DET_COTIZACION_4" collection
 * @method Doctrine_Collection getINDETCOTIZACION5()    Returns the current record's "IN_DET_COTIZACION_5" collection
 * @method Doctrine_Collection getINDETCOTIZACION6()    Returns the current record's "IN_DET_COTIZACION_6" collection
 * @method Doctrine_Collection getINDETCOTIZACION7()    Returns the current record's "IN_DET_COTIZACION_7" collection
 * @method Doctrine_Collection getINDETCOTIZACION8()    Returns the current record's "IN_DET_COTIZACION_8" collection
 * @method Doctrine_Collection getINDETCOTIZACION9()    Returns the current record's "IN_DET_COTIZACION_9" collection
 * @method Doctrine_Collection getINCONTRATO()          Returns the current record's "IN_CONTRATO" collection
 * @method Doctrine_Collection getINCONTRATO2()         Returns the current record's "IN_CONTRATO_2" collection
 * @method Doctrine_Collection getINCONTRATO3()         Returns the current record's "IN_CONTRATO_3" collection
 * @method Doctrine_Collection getINCONTRATO4()         Returns the current record's "IN_CONTRATO_4" collection
 * @method Doctrine_Collection getINCONTRATO5()         Returns the current record's "IN_CONTRATO_5" collection
 * @method Doctrine_Collection getINCONTRATO6()         Returns the current record's "IN_CONTRATO_6" collection
 * @method Doctrine_Collection getINCONTRATO7()         Returns the current record's "IN_CONTRATO_7" collection
 * @method Doctrine_Collection getINCONTRATO8()         Returns the current record's "IN_CONTRATO_8" collection
 * @method Doctrine_Collection getINCONTRATO9()         Returns the current record's "IN_CONTRATO_9" collection
 * @method IN_COTIZACION       setIdCotizacion()        Sets the current record's "id_cotizacion" value
 * @method IN_COTIZACION       setIdCenOp()             Sets the current record's "id_cen_op" value
 * @method IN_COTIZACION       setIdVigencia()          Sets the current record's "id_vigencia" value
 * @method IN_COTIZACION       setIdSoliCompra()        Sets the current record's "id_soli_compra" value
 * @method IN_COTIZACION       setIdMaeTer()            Sets the current record's "id_mae_ter" value
 * @method IN_COTIZACION       setFechaCotizacion()     Sets the current record's "fecha_cotizacion" value
 * @method IN_COTIZACION       setDiasValidez()         Sets the current record's "dias_validez" value
 * @method IN_COTIZACION       setFechaVence()          Sets the current record's "fecha_vence" value
 * @method IN_COTIZACION       setIdTipMon()            Sets the current record's "id_tip_mon" value
 * @method IN_COTIZACION       setGarantia()            Sets the current record's "garantia" value
 * @method IN_COTIZACION       setIdPeriodoGarantia()   Sets the current record's "id_periodo_garantia" value
 * @method IN_COTIZACION       setIdPeriodoEntrega()    Sets the current record's "id_periodo_entrega" value
 * @method IN_COTIZACION       setDescuento()           Sets the current record's "descuento" value
 * @method IN_COTIZACION       setValorIva()            Sets the current record's "valor_iva" value
 * @method IN_COTIZACION       setSitioEntrega()        Sets the current record's "sitio_entrega" value
 * @method IN_COTIZACION       setFormaPago()           Sets the current record's "forma_pago" value
 * @method IN_COTIZACION       setObservaciones()       Sets the current record's "observaciones" value
 * @method IN_COTIZACION       setEstado()              Sets the current record's "estado" value
 * @method IN_COTIZACION       setAnulado()             Sets the current record's "anulado" value
 * @method IN_COTIZACION       setFechaAnu()            Sets the current record's "fecha_anu" value
 * @method IN_COTIZACION       setMotivoAnu()           Sets the current record's "motivo_anu" value
 * @method IN_COTIZACION       setIdUsuarioAnu()        Sets the current record's "id_usuario_anu" value
 * @method IN_COTIZACION       setValorTotal()          Sets the current record's "valor_total" value
 * @method IN_COTIZACION       setEntrega()             Sets the current record's "entrega" value
 * @method IN_COTIZACION       setValorNeto()           Sets the current record's "valor_neto" value
 * @method IN_COTIZACION       setPERIODOTIEMPO()       Sets the current record's "PERIODO_TIEMPO" value
 * @method IN_COTIZACION       setPERIODOTIEMPO2()      Sets the current record's "PERIODO_TIEMPO_2" value
 * @method IN_COTIZACION       setINTERCEROS()          Sets the current record's "INTERCEROS" value
 * @method IN_COTIZACION       setCATIPMON()            Sets the current record's "CA_TIP_MON" value
 * @method IN_COTIZACION       setCENTROOPERACION()     Sets the current record's "CENTRO_OPERACION" value
 * @method IN_COTIZACION       setINSOLICOMPRA()        Sets the current record's "IN_SOLI_COMPRA" value
 * @method IN_COTIZACION       setINSOLICOMPRA7()       Sets the current record's "IN_SOLI_COMPRA_7" value
 * @method IN_COTIZACION       setINSOLICOMPRA8()       Sets the current record's "IN_SOLI_COMPRA_8" value
 * @method IN_COTIZACION       setINSOLICOMPRA9()       Sets the current record's "IN_SOLI_COMPRA_9" value
 * @method IN_COTIZACION       setINSOLICOMPRA10()      Sets the current record's "IN_SOLI_COMPRA_10" value
 * @method IN_COTIZACION       setINSOLICOMPRA11()      Sets the current record's "IN_SOLI_COMPRA_11" value
 * @method IN_COTIZACION       setINSOLICOMPRA12()      Sets the current record's "IN_SOLI_COMPRA_12" value
 * @method IN_COTIZACION       setINSOLICOMPRA13()      Sets the current record's "IN_SOLI_COMPRA_13" value
 * @method IN_COTIZACION       setINSOLICOMPRA14()      Sets the current record's "IN_SOLI_COMPRA_14" value
 * @method IN_COTIZACION       setINDETCOTIZACION()     Sets the current record's "IN_DET_COTIZACION" collection
 * @method IN_COTIZACION       setINDETCOTIZACION2()    Sets the current record's "IN_DET_COTIZACION_2" collection
 * @method IN_COTIZACION       setINDETCOTIZACION3()    Sets the current record's "IN_DET_COTIZACION_3" collection
 * @method IN_COTIZACION       setINDETCOTIZACION4()    Sets the current record's "IN_DET_COTIZACION_4" collection
 * @method IN_COTIZACION       setINDETCOTIZACION5()    Sets the current record's "IN_DET_COTIZACION_5" collection
 * @method IN_COTIZACION       setINDETCOTIZACION6()    Sets the current record's "IN_DET_COTIZACION_6" collection
 * @method IN_COTIZACION       setINDETCOTIZACION7()    Sets the current record's "IN_DET_COTIZACION_7" collection
 * @method IN_COTIZACION       setINDETCOTIZACION8()    Sets the current record's "IN_DET_COTIZACION_8" collection
 * @method IN_COTIZACION       setINDETCOTIZACION9()    Sets the current record's "IN_DET_COTIZACION_9" collection
 * @method IN_COTIZACION       setINCONTRATO()          Sets the current record's "IN_CONTRATO" collection
 * @method IN_COTIZACION       setINCONTRATO2()         Sets the current record's "IN_CONTRATO_2" collection
 * @method IN_COTIZACION       setINCONTRATO3()         Sets the current record's "IN_CONTRATO_3" collection
 * @method IN_COTIZACION       setINCONTRATO4()         Sets the current record's "IN_CONTRATO_4" collection
 * @method IN_COTIZACION       setINCONTRATO5()         Sets the current record's "IN_CONTRATO_5" collection
 * @method IN_COTIZACION       setINCONTRATO6()         Sets the current record's "IN_CONTRATO_6" collection
 * @method IN_COTIZACION       setINCONTRATO7()         Sets the current record's "IN_CONTRATO_7" collection
 * @method IN_COTIZACION       setINCONTRATO8()         Sets the current record's "IN_CONTRATO_8" collection
 * @method IN_COTIZACION       setINCONTRATO9()         Sets the current record's "IN_CONTRATO_9" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_COTIZACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_COTIZACION');
        $this->hasColumn('id_cotizacion', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_vigencia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_soli_compra', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_cotizacion', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('dias_validez', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_vence', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_tip_mon', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('garantia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_periodo_garantia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_periodo_entrega', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descuento', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_iva', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('sitio_entrega', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('forma_pago', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('observaciones', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('anulado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             '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', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('id_usuario_anu', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_total', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('entrega', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_neto', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 18,
             ));
    }

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

        $this->hasOne('PERIODO_TIEMPO as PERIODO_TIEMPO_2', array(
             'local' => 'id_periodo_garantia',
             'foreign' => 'id_periodo_tiempo'));

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

        $this->hasOne('CA_TIP_MON', array(
             'local' => 'id_tip_mon',
             'foreign' => 'id_tip_mon'));

        $this->hasOne('CENTRO_OPERACION', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasOne('IN_SOLI_COMPRA', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_soli_compra'));

        $this->hasOne('IN_SOLI_COMPRA as IN_SOLI_COMPRA_7', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_soli_compra'));

        $this->hasOne('IN_SOLI_COMPRA as IN_SOLI_COMPRA_8', array(
             'local' => 'id_soli_compra',
             'foreign' => 'id_soli_compra'));

        $this->hasOne('IN_SOLI_COMPRA as IN_SOLI_COMPRA_9', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_vigencia'));

        $this->hasOne('IN_SOLI_COMPRA as IN_SOLI_COMPRA_10', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('IN_SOLI_COMPRA as IN_SOLI_COMPRA_11', array(
             'local' => 'id_soli_compra',
             'foreign' => 'id_vigencia'));

        $this->hasOne('IN_SOLI_COMPRA as IN_SOLI_COMPRA_12', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasOne('IN_SOLI_COMPRA as IN_SOLI_COMPRA_13', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cen_op'));

        $this->hasOne('IN_SOLI_COMPRA as IN_SOLI_COMPRA_14', array(
             'local' => 'id_soli_compra',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_DET_COTIZACION', array(
             'local' => 'id_cotizacion',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_DET_COTIZACION as IN_DET_COTIZACION_2', array(
             'local' => 'id_cotizacion',
             'foreign' => 'id_vigencia'));

        $this->hasMany('IN_DET_COTIZACION as IN_DET_COTIZACION_3', array(
             'local' => 'id_cotizacion',
             'foreign' => 'id_cotizacion'));

        $this->hasMany('IN_DET_COTIZACION as IN_DET_COTIZACION_4', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_DET_COTIZACION as IN_DET_COTIZACION_5', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_vigencia'));

        $this->hasMany('IN_DET_COTIZACION as IN_DET_COTIZACION_6', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cotizacion'));

        $this->hasMany('IN_DET_COTIZACION as IN_DET_COTIZACION_7', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_DET_COTIZACION as IN_DET_COTIZACION_8', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasMany('IN_DET_COTIZACION as IN_DET_COTIZACION_9', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cotizacion'));

        $this->hasMany('IN_CONTRATO', array(
             'local' => 'id_cotizacion',
             'foreign' => 'id_vigencia'));

        $this->hasMany('IN_CONTRATO as IN_CONTRATO_2', array(
             'local' => 'id_cotizacion',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_CONTRATO as IN_CONTRATO_3', array(
             'local' => 'id_cotizacion',
             'foreign' => 'id_cotizacion'));

        $this->hasMany('IN_CONTRATO as IN_CONTRATO_4', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_vigencia'));

        $this->hasMany('IN_CONTRATO as IN_CONTRATO_5', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_CONTRATO as IN_CONTRATO_6', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cotizacion'));

        $this->hasMany('IN_CONTRATO as IN_CONTRATO_7', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasMany('IN_CONTRATO as IN_CONTRATO_8', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_CONTRATO as IN_CONTRATO_9', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cotizacion'));
    }
}