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

/**
 * BaseIN_DET_COTIZACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_det_cotizacion
 * @property integer $id_cen_op
 * @property integer $id_vigencia
 * @property integer $id_cotizacion
 * @property integer $id_soli_det_compra
 * @property integer $cantidad
 * @property decimal $valor
 * @property decimal $descuento
 * @property decimal $iva
 * @property decimal $subtotal
 * @property integer $estado
 * @property integer $anulado
 * @property decimal $valor_iva
 * @property IN_COTIZACION $IN_COTIZACION
 * @property IN_COTIZACION $IN_COTIZACION_2
 * @property IN_COTIZACION $IN_COTIZACION_3
 * @property IN_COTIZACION $IN_COTIZACION_4
 * @property IN_COTIZACION $IN_COTIZACION_5
 * @property IN_COTIZACION $IN_COTIZACION_6
 * @property IN_COTIZACION $IN_COTIZACION_7
 * @property IN_COTIZACION $IN_COTIZACION_8
 * @property IN_COTIZACION $IN_COTIZACION_9
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_11
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_12
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_13
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_14
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_15
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_16
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_17
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_18
 * @property Doctrine_Collection $IN_DET_CONTRATO
 * @property Doctrine_Collection $IN_DET_CONTRATO_11
 * @property Doctrine_Collection $IN_DET_CONTRATO_12
 * @property Doctrine_Collection $IN_DET_CONTRATO_13
 * @property Doctrine_Collection $IN_DET_CONTRATO_14
 * @property Doctrine_Collection $IN_DET_CONTRATO_15
 * @property Doctrine_Collection $IN_DET_CONTRATO_16
 * @property Doctrine_Collection $IN_DET_CONTRATO_17
 * @property Doctrine_Collection $IN_DET_CONTRATO_18
 * 
 * @method integer             getIdDetCotizacion()       Returns the current record's "id_det_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             getIdCotizacion()          Returns the current record's "id_cotizacion" value
 * @method integer             getIdSoliDetCompra()       Returns the current record's "id_soli_det_compra" value
 * @method integer             getCantidad()              Returns the current record's "cantidad" value
 * @method decimal             getValor()                 Returns the current record's "valor" value
 * @method decimal             getDescuento()             Returns the current record's "descuento" value
 * @method decimal             getIva()                   Returns the current record's "iva" value
 * @method decimal             getSubtotal()              Returns the current record's "subtotal" value
 * @method integer             getEstado()                Returns the current record's "estado" value
 * @method integer             getAnulado()               Returns the current record's "anulado" value
 * @method decimal             getValorIva()              Returns the current record's "valor_iva" value
 * @method IN_COTIZACION       getINCOTIZACION()          Returns the current record's "IN_COTIZACION" value
 * @method IN_COTIZACION       getINCOTIZACION2()         Returns the current record's "IN_COTIZACION_2" value
 * @method IN_COTIZACION       getINCOTIZACION3()         Returns the current record's "IN_COTIZACION_3" value
 * @method IN_COTIZACION       getINCOTIZACION4()         Returns the current record's "IN_COTIZACION_4" value
 * @method IN_COTIZACION       getINCOTIZACION5()         Returns the current record's "IN_COTIZACION_5" value
 * @method IN_COTIZACION       getINCOTIZACION6()         Returns the current record's "IN_COTIZACION_6" value
 * @method IN_COTIZACION       getINCOTIZACION7()         Returns the current record's "IN_COTIZACION_7" value
 * @method IN_COTIZACION       getINCOTIZACION8()         Returns the current record's "IN_COTIZACION_8" value
 * @method IN_COTIZACION       getINCOTIZACION9()         Returns the current record's "IN_COTIZACION_9" value
 * @method IN_SOLI_DET_COMPRA  getINSOLIDETCOMPRA()       Returns the current record's "IN_SOLI_DET_COMPRA" value
 * @method IN_SOLI_DET_COMPRA  getINSOLIDETCOMPRA11()     Returns the current record's "IN_SOLI_DET_COMPRA_11" value
 * @method IN_SOLI_DET_COMPRA  getINSOLIDETCOMPRA12()     Returns the current record's "IN_SOLI_DET_COMPRA_12" value
 * @method IN_SOLI_DET_COMPRA  getINSOLIDETCOMPRA13()     Returns the current record's "IN_SOLI_DET_COMPRA_13" value
 * @method IN_SOLI_DET_COMPRA  getINSOLIDETCOMPRA14()     Returns the current record's "IN_SOLI_DET_COMPRA_14" value
 * @method IN_SOLI_DET_COMPRA  getINSOLIDETCOMPRA15()     Returns the current record's "IN_SOLI_DET_COMPRA_15" value
 * @method IN_SOLI_DET_COMPRA  getINSOLIDETCOMPRA16()     Returns the current record's "IN_SOLI_DET_COMPRA_16" value
 * @method IN_SOLI_DET_COMPRA  getINSOLIDETCOMPRA17()     Returns the current record's "IN_SOLI_DET_COMPRA_17" value
 * @method IN_SOLI_DET_COMPRA  getINSOLIDETCOMPRA18()     Returns the current record's "IN_SOLI_DET_COMPRA_18" value
 * @method Doctrine_Collection getINDETCONTRATO()         Returns the current record's "IN_DET_CONTRATO" collection
 * @method Doctrine_Collection getINDETCONTRATO11()       Returns the current record's "IN_DET_CONTRATO_11" collection
 * @method Doctrine_Collection getINDETCONTRATO12()       Returns the current record's "IN_DET_CONTRATO_12" collection
 * @method Doctrine_Collection getINDETCONTRATO13()       Returns the current record's "IN_DET_CONTRATO_13" collection
 * @method Doctrine_Collection getINDETCONTRATO14()       Returns the current record's "IN_DET_CONTRATO_14" collection
 * @method Doctrine_Collection getINDETCONTRATO15()       Returns the current record's "IN_DET_CONTRATO_15" collection
 * @method Doctrine_Collection getINDETCONTRATO16()       Returns the current record's "IN_DET_CONTRATO_16" collection
 * @method Doctrine_Collection getINDETCONTRATO17()       Returns the current record's "IN_DET_CONTRATO_17" collection
 * @method Doctrine_Collection getINDETCONTRATO18()       Returns the current record's "IN_DET_CONTRATO_18" collection
 * @method IN_DET_COTIZACION   setIdDetCotizacion()       Sets the current record's "id_det_cotizacion" value
 * @method IN_DET_COTIZACION   setIdCenOp()               Sets the current record's "id_cen_op" value
 * @method IN_DET_COTIZACION   setIdVigencia()            Sets the current record's "id_vigencia" value
 * @method IN_DET_COTIZACION   setIdCotizacion()          Sets the current record's "id_cotizacion" value
 * @method IN_DET_COTIZACION   setIdSoliDetCompra()       Sets the current record's "id_soli_det_compra" value
 * @method IN_DET_COTIZACION   setCantidad()              Sets the current record's "cantidad" value
 * @method IN_DET_COTIZACION   setValor()                 Sets the current record's "valor" value
 * @method IN_DET_COTIZACION   setDescuento()             Sets the current record's "descuento" value
 * @method IN_DET_COTIZACION   setIva()                   Sets the current record's "iva" value
 * @method IN_DET_COTIZACION   setSubtotal()              Sets the current record's "subtotal" value
 * @method IN_DET_COTIZACION   setEstado()                Sets the current record's "estado" value
 * @method IN_DET_COTIZACION   setAnulado()               Sets the current record's "anulado" value
 * @method IN_DET_COTIZACION   setValorIva()              Sets the current record's "valor_iva" value
 * @method IN_DET_COTIZACION   setINCOTIZACION()          Sets the current record's "IN_COTIZACION" value
 * @method IN_DET_COTIZACION   setINCOTIZACION2()         Sets the current record's "IN_COTIZACION_2" value
 * @method IN_DET_COTIZACION   setINCOTIZACION3()         Sets the current record's "IN_COTIZACION_3" value
 * @method IN_DET_COTIZACION   setINCOTIZACION4()         Sets the current record's "IN_COTIZACION_4" value
 * @method IN_DET_COTIZACION   setINCOTIZACION5()         Sets the current record's "IN_COTIZACION_5" value
 * @method IN_DET_COTIZACION   setINCOTIZACION6()         Sets the current record's "IN_COTIZACION_6" value
 * @method IN_DET_COTIZACION   setINCOTIZACION7()         Sets the current record's "IN_COTIZACION_7" value
 * @method IN_DET_COTIZACION   setINCOTIZACION8()         Sets the current record's "IN_COTIZACION_8" value
 * @method IN_DET_COTIZACION   setINCOTIZACION9()         Sets the current record's "IN_COTIZACION_9" value
 * @method IN_DET_COTIZACION   setINSOLIDETCOMPRA()       Sets the current record's "IN_SOLI_DET_COMPRA" value
 * @method IN_DET_COTIZACION   setINSOLIDETCOMPRA11()     Sets the current record's "IN_SOLI_DET_COMPRA_11" value
 * @method IN_DET_COTIZACION   setINSOLIDETCOMPRA12()     Sets the current record's "IN_SOLI_DET_COMPRA_12" value
 * @method IN_DET_COTIZACION   setINSOLIDETCOMPRA13()     Sets the current record's "IN_SOLI_DET_COMPRA_13" value
 * @method IN_DET_COTIZACION   setINSOLIDETCOMPRA14()     Sets the current record's "IN_SOLI_DET_COMPRA_14" value
 * @method IN_DET_COTIZACION   setINSOLIDETCOMPRA15()     Sets the current record's "IN_SOLI_DET_COMPRA_15" value
 * @method IN_DET_COTIZACION   setINSOLIDETCOMPRA16()     Sets the current record's "IN_SOLI_DET_COMPRA_16" value
 * @method IN_DET_COTIZACION   setINSOLIDETCOMPRA17()     Sets the current record's "IN_SOLI_DET_COMPRA_17" value
 * @method IN_DET_COTIZACION   setINSOLIDETCOMPRA18()     Sets the current record's "IN_SOLI_DET_COMPRA_18" value
 * @method IN_DET_COTIZACION   setINDETCONTRATO()         Sets the current record's "IN_DET_CONTRATO" collection
 * @method IN_DET_COTIZACION   setINDETCONTRATO11()       Sets the current record's "IN_DET_CONTRATO_11" collection
 * @method IN_DET_COTIZACION   setINDETCONTRATO12()       Sets the current record's "IN_DET_CONTRATO_12" collection
 * @method IN_DET_COTIZACION   setINDETCONTRATO13()       Sets the current record's "IN_DET_CONTRATO_13" collection
 * @method IN_DET_COTIZACION   setINDETCONTRATO14()       Sets the current record's "IN_DET_CONTRATO_14" collection
 * @method IN_DET_COTIZACION   setINDETCONTRATO15()       Sets the current record's "IN_DET_CONTRATO_15" collection
 * @method IN_DET_COTIZACION   setINDETCONTRATO16()       Sets the current record's "IN_DET_CONTRATO_16" collection
 * @method IN_DET_COTIZACION   setINDETCONTRATO17()       Sets the current record's "IN_DET_CONTRATO_17" collection
 * @method IN_DET_COTIZACION   setINDETCONTRATO18()       Sets the current record's "IN_DET_CONTRATO_18" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_DET_COTIZACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_DET_COTIZACION');
        $this->hasColumn('id_det_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_cotizacion', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_soli_det_compra', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cantidad', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('descuento', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('iva', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('subtotal', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $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('valor_iva', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 18,
             ));
    }

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

        $this->hasOne('IN_COTIZACION as IN_COTIZACION_2', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cotizacion'));

        $this->hasOne('IN_COTIZACION as IN_COTIZACION_3', array(
             'local' => 'id_cotizacion',
             'foreign' => 'id_cotizacion'));

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

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

        $this->hasOne('IN_COTIZACION as IN_COTIZACION_6', array(
             'local' => 'id_cotizacion',
             'foreign' => 'id_cen_op'));

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

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

        $this->hasOne('IN_COTIZACION as IN_COTIZACION_9', array(
             'local' => 'id_cotizacion',
             'foreign' => 'id_vigencia'));

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

        $this->hasOne('IN_SOLI_DET_COMPRA as IN_SOLI_DET_COMPRA_11', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_soli_det_compra'));

        $this->hasOne('IN_SOLI_DET_COMPRA as IN_SOLI_DET_COMPRA_12', array(
             'local' => 'id_soli_det_compra',
             'foreign' => 'id_soli_det_compra'));

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

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

        $this->hasOne('IN_SOLI_DET_COMPRA as IN_SOLI_DET_COMPRA_15', array(
             'local' => 'id_soli_det_compra',
             'foreign' => 'id_vigencia'));

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

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

        $this->hasOne('IN_SOLI_DET_COMPRA as IN_SOLI_DET_COMPRA_18', array(
             'local' => 'id_soli_det_compra',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_DET_CONTRATO', array(
             'local' => 'id_det_cotizacion',
             'foreign' => 'id_vigencia'));

        $this->hasMany('IN_DET_CONTRATO as IN_DET_CONTRATO_11', array(
             'local' => 'id_det_cotizacion',
             'foreign' => 'id_cen_op'));

        $this->hasMany('IN_DET_CONTRATO as IN_DET_CONTRATO_12', array(
             'local' => 'id_det_cotizacion',
             'foreign' => 'id_det_cotizacion'));

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

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

        $this->hasMany('IN_DET_CONTRATO as IN_DET_CONTRATO_15', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_det_cotizacion'));

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

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

        $this->hasMany('IN_DET_CONTRATO as IN_DET_CONTRATO_18', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_det_cotizacion'));
    }
}