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

/**
 * BaseIN_DET_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_det_contrato
 * @property integer $id_vigencia
 * @property integer $id_cen_op
 * @property integer $id_contrato
 * @property integer $id_soli_det_compra
 * @property integer $cantidad
 * @property integer $id_det_cotizacion
 * @property integer $estado
 * @property integer $anulado
 * @property decimal $valor
 * @property decimal $descuento
 * @property decimal $iva
 * @property decimal $subtotal
 * @property integer $cantidad_recibida
 * @property decimal $valor_iva
 * @property integer $en_proceso
 * @property IN_CONTRATO $IN_CONTRATO
 * @property IN_CONTRATO $IN_CONTRATO_2
 * @property IN_CONTRATO $IN_CONTRATO_3
 * @property IN_CONTRATO $IN_CONTRATO_4
 * @property IN_CONTRATO $IN_CONTRATO_5
 * @property IN_CONTRATO $IN_CONTRATO_6
 * @property IN_CONTRATO $IN_CONTRATO_7
 * @property IN_CONTRATO $IN_CONTRATO_8
 * @property IN_CONTRATO $IN_CONTRATO_9
 * @property IN_DET_COTIZACION $IN_DET_COTIZACION
 * @property IN_DET_COTIZACION $IN_DET_COTIZACION_11
 * @property IN_DET_COTIZACION $IN_DET_COTIZACION_12
 * @property IN_DET_COTIZACION $IN_DET_COTIZACION_13
 * @property IN_DET_COTIZACION $IN_DET_COTIZACION_14
 * @property IN_DET_COTIZACION $IN_DET_COTIZACION_15
 * @property IN_DET_COTIZACION $IN_DET_COTIZACION_16
 * @property IN_DET_COTIZACION $IN_DET_COTIZACION_17
 * @property IN_DET_COTIZACION $IN_DET_COTIZACION_18
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_20
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_21
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_22
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_23
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_24
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_25
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_26
 * @property IN_SOLI_DET_COMPRA $IN_SOLI_DET_COMPRA_27
 * 
 * @method integer            getIdDetContrato()         Returns the current record's "id_det_contrato" value
 * @method integer            getIdVigencia()            Returns the current record's "id_vigencia" value
 * @method integer            getIdCenOp()               Returns the current record's "id_cen_op" value
 * @method integer            getIdContrato()            Returns the current record's "id_contrato" 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 integer            getIdDetCotizacion()       Returns the current record's "id_det_cotizacion" value
 * @method integer            getEstado()                Returns the current record's "estado" value
 * @method integer            getAnulado()               Returns the current record's "anulado" 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            getCantidadRecibida()      Returns the current record's "cantidad_recibida" value
 * @method decimal            getValorIva()              Returns the current record's "valor_iva" value
 * @method integer            getEnProceso()             Returns the current record's "en_proceso" value
 * @method IN_CONTRATO        getINCONTRATO()            Returns the current record's "IN_CONTRATO" value
 * @method IN_CONTRATO        getINCONTRATO2()           Returns the current record's "IN_CONTRATO_2" value
 * @method IN_CONTRATO        getINCONTRATO3()           Returns the current record's "IN_CONTRATO_3" value
 * @method IN_CONTRATO        getINCONTRATO4()           Returns the current record's "IN_CONTRATO_4" value
 * @method IN_CONTRATO        getINCONTRATO5()           Returns the current record's "IN_CONTRATO_5" value
 * @method IN_CONTRATO        getINCONTRATO6()           Returns the current record's "IN_CONTRATO_6" value
 * @method IN_CONTRATO        getINCONTRATO7()           Returns the current record's "IN_CONTRATO_7" value
 * @method IN_CONTRATO        getINCONTRATO8()           Returns the current record's "IN_CONTRATO_8" value
 * @method IN_CONTRATO        getINCONTRATO9()           Returns the current record's "IN_CONTRATO_9" value
 * @method IN_DET_COTIZACION  getINDETCOTIZACION()       Returns the current record's "IN_DET_COTIZACION" value
 * @method IN_DET_COTIZACION  getINDETCOTIZACION11()     Returns the current record's "IN_DET_COTIZACION_11" value
 * @method IN_DET_COTIZACION  getINDETCOTIZACION12()     Returns the current record's "IN_DET_COTIZACION_12" value
 * @method IN_DET_COTIZACION  getINDETCOTIZACION13()     Returns the current record's "IN_DET_COTIZACION_13" value
 * @method IN_DET_COTIZACION  getINDETCOTIZACION14()     Returns the current record's "IN_DET_COTIZACION_14" value
 * @method IN_DET_COTIZACION  getINDETCOTIZACION15()     Returns the current record's "IN_DET_COTIZACION_15" value
 * @method IN_DET_COTIZACION  getINDETCOTIZACION16()     Returns the current record's "IN_DET_COTIZACION_16" value
 * @method IN_DET_COTIZACION  getINDETCOTIZACION17()     Returns the current record's "IN_DET_COTIZACION_17" value
 * @method IN_DET_COTIZACION  getINDETCOTIZACION18()     Returns the current record's "IN_DET_COTIZACION_18" value
 * @method IN_SOLI_DET_COMPRA getINSOLIDETCOMPRA()       Returns the current record's "IN_SOLI_DET_COMPRA" value
 * @method IN_SOLI_DET_COMPRA getINSOLIDETCOMPRA20()     Returns the current record's "IN_SOLI_DET_COMPRA_20" value
 * @method IN_SOLI_DET_COMPRA getINSOLIDETCOMPRA21()     Returns the current record's "IN_SOLI_DET_COMPRA_21" value
 * @method IN_SOLI_DET_COMPRA getINSOLIDETCOMPRA22()     Returns the current record's "IN_SOLI_DET_COMPRA_22" value
 * @method IN_SOLI_DET_COMPRA getINSOLIDETCOMPRA23()     Returns the current record's "IN_SOLI_DET_COMPRA_23" value
 * @method IN_SOLI_DET_COMPRA getINSOLIDETCOMPRA24()     Returns the current record's "IN_SOLI_DET_COMPRA_24" value
 * @method IN_SOLI_DET_COMPRA getINSOLIDETCOMPRA25()     Returns the current record's "IN_SOLI_DET_COMPRA_25" value
 * @method IN_SOLI_DET_COMPRA getINSOLIDETCOMPRA26()     Returns the current record's "IN_SOLI_DET_COMPRA_26" value
 * @method IN_SOLI_DET_COMPRA getINSOLIDETCOMPRA27()     Returns the current record's "IN_SOLI_DET_COMPRA_27" value
 * @method IN_DET_CONTRATO    setIdDetContrato()         Sets the current record's "id_det_contrato" value
 * @method IN_DET_CONTRATO    setIdVigencia()            Sets the current record's "id_vigencia" value
 * @method IN_DET_CONTRATO    setIdCenOp()               Sets the current record's "id_cen_op" value
 * @method IN_DET_CONTRATO    setIdContrato()            Sets the current record's "id_contrato" value
 * @method IN_DET_CONTRATO    setIdSoliDetCompra()       Sets the current record's "id_soli_det_compra" value
 * @method IN_DET_CONTRATO    setCantidad()              Sets the current record's "cantidad" value
 * @method IN_DET_CONTRATO    setIdDetCotizacion()       Sets the current record's "id_det_cotizacion" value
 * @method IN_DET_CONTRATO    setEstado()                Sets the current record's "estado" value
 * @method IN_DET_CONTRATO    setAnulado()               Sets the current record's "anulado" value
 * @method IN_DET_CONTRATO    setValor()                 Sets the current record's "valor" value
 * @method IN_DET_CONTRATO    setDescuento()             Sets the current record's "descuento" value
 * @method IN_DET_CONTRATO    setIva()                   Sets the current record's "iva" value
 * @method IN_DET_CONTRATO    setSubtotal()              Sets the current record's "subtotal" value
 * @method IN_DET_CONTRATO    setCantidadRecibida()      Sets the current record's "cantidad_recibida" value
 * @method IN_DET_CONTRATO    setValorIva()              Sets the current record's "valor_iva" value
 * @method IN_DET_CONTRATO    setEnProceso()             Sets the current record's "en_proceso" value
 * @method IN_DET_CONTRATO    setINCONTRATO()            Sets the current record's "IN_CONTRATO" value
 * @method IN_DET_CONTRATO    setINCONTRATO2()           Sets the current record's "IN_CONTRATO_2" value
 * @method IN_DET_CONTRATO    setINCONTRATO3()           Sets the current record's "IN_CONTRATO_3" value
 * @method IN_DET_CONTRATO    setINCONTRATO4()           Sets the current record's "IN_CONTRATO_4" value
 * @method IN_DET_CONTRATO    setINCONTRATO5()           Sets the current record's "IN_CONTRATO_5" value
 * @method IN_DET_CONTRATO    setINCONTRATO6()           Sets the current record's "IN_CONTRATO_6" value
 * @method IN_DET_CONTRATO    setINCONTRATO7()           Sets the current record's "IN_CONTRATO_7" value
 * @method IN_DET_CONTRATO    setINCONTRATO8()           Sets the current record's "IN_CONTRATO_8" value
 * @method IN_DET_CONTRATO    setINCONTRATO9()           Sets the current record's "IN_CONTRATO_9" value
 * @method IN_DET_CONTRATO    setINDETCOTIZACION()       Sets the current record's "IN_DET_COTIZACION" value
 * @method IN_DET_CONTRATO    setINDETCOTIZACION11()     Sets the current record's "IN_DET_COTIZACION_11" value
 * @method IN_DET_CONTRATO    setINDETCOTIZACION12()     Sets the current record's "IN_DET_COTIZACION_12" value
 * @method IN_DET_CONTRATO    setINDETCOTIZACION13()     Sets the current record's "IN_DET_COTIZACION_13" value
 * @method IN_DET_CONTRATO    setINDETCOTIZACION14()     Sets the current record's "IN_DET_COTIZACION_14" value
 * @method IN_DET_CONTRATO    setINDETCOTIZACION15()     Sets the current record's "IN_DET_COTIZACION_15" value
 * @method IN_DET_CONTRATO    setINDETCOTIZACION16()     Sets the current record's "IN_DET_COTIZACION_16" value
 * @method IN_DET_CONTRATO    setINDETCOTIZACION17()     Sets the current record's "IN_DET_COTIZACION_17" value
 * @method IN_DET_CONTRATO    setINDETCOTIZACION18()     Sets the current record's "IN_DET_COTIZACION_18" value
 * @method IN_DET_CONTRATO    setINSOLIDETCOMPRA()       Sets the current record's "IN_SOLI_DET_COMPRA" value
 * @method IN_DET_CONTRATO    setINSOLIDETCOMPRA20()     Sets the current record's "IN_SOLI_DET_COMPRA_20" value
 * @method IN_DET_CONTRATO    setINSOLIDETCOMPRA21()     Sets the current record's "IN_SOLI_DET_COMPRA_21" value
 * @method IN_DET_CONTRATO    setINSOLIDETCOMPRA22()     Sets the current record's "IN_SOLI_DET_COMPRA_22" value
 * @method IN_DET_CONTRATO    setINSOLIDETCOMPRA23()     Sets the current record's "IN_SOLI_DET_COMPRA_23" value
 * @method IN_DET_CONTRATO    setINSOLIDETCOMPRA24()     Sets the current record's "IN_SOLI_DET_COMPRA_24" value
 * @method IN_DET_CONTRATO    setINSOLIDETCOMPRA25()     Sets the current record's "IN_SOLI_DET_COMPRA_25" value
 * @method IN_DET_CONTRATO    setINSOLIDETCOMPRA26()     Sets the current record's "IN_SOLI_DET_COMPRA_26" value
 * @method IN_DET_CONTRATO    setINSOLIDETCOMPRA27()     Sets the current record's "IN_SOLI_DET_COMPRA_27" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_DET_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_DET_CONTRATO');
        $this->hasColumn('id_det_contrato', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_vigencia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_contrato', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_soli_det_compra', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cantidad', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_det_cotizacion', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('anulado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('valor', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('descuento', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('iva', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('subtotal', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('cantidad_recibida', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_iva', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('en_proceso', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

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

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

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

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

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_6', array(
             'local' => 'id_contrato',
             'foreign' => 'id_vigencia'));

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

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

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_9', array(
             'local' => 'id_contrato',
             'foreign' => 'id_cen_op'));

        $this->hasOne('IN_DET_COTIZACION', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_det_cotizacion'));

        $this->hasOne('IN_DET_COTIZACION as IN_DET_COTIZACION_11', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_det_cotizacion'));

        $this->hasOne('IN_DET_COTIZACION as IN_DET_COTIZACION_12', array(
             'local' => 'id_det_cotizacion',
             'foreign' => 'id_det_cotizacion'));

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

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

        $this->hasOne('IN_DET_COTIZACION as IN_DET_COTIZACION_15', array(
             'local' => 'id_det_cotizacion',
             'foreign' => 'id_cen_op'));

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

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

        $this->hasOne('IN_DET_COTIZACION as IN_DET_COTIZACION_18', array(
             'local' => 'id_det_cotizacion',
             'foreign' => 'id_vigencia'));

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

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

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

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

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

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

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

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

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