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

/**
 * BaseIN_SOLI_DET_COMPRA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_soli_det_compra
 * @property integer $id_vigencia
 * @property integer $id_cen_op
 * @property integer $id_catalogo
 * @property integer $id_linea
 * @property integer $id_clase
 * @property integer $cantidad
 * @property string $observaciones
 * @property integer $estado
 * @property integer $anulado
 * @property integer $id_soli_compra
 * @property IN_CATALOGO $IN_CATALOGO
 * @property IN_CATALOGO $IN_CATALOGO_2
 * @property IN_CATALOGO $IN_CATALOGO_3
 * @property IN_CATALOGO $IN_CATALOGO_4
 * @property IN_CATALOGO $IN_CATALOGO_5
 * @property IN_CATALOGO $IN_CATALOGO_6
 * @property IN_CATALOGO $IN_CATALOGO_7
 * @property IN_CATALOGO $IN_CATALOGO_8
 * @property IN_CATALOGO $IN_CATALOGO_9
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA
 * @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 IN_SOLI_COMPRA $IN_SOLI_COMPRA_15
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA_16
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA_17
 * @property IN_SOLI_COMPRA $IN_SOLI_COMPRA_18
 * @property Doctrine_Collection $IN_DET_COTIZACION
 * @property Doctrine_Collection $IN_DET_COTIZACION_11
 * @property Doctrine_Collection $IN_DET_COTIZACION_12
 * @property Doctrine_Collection $IN_DET_COTIZACION_13
 * @property Doctrine_Collection $IN_DET_COTIZACION_14
 * @property Doctrine_Collection $IN_DET_COTIZACION_15
 * @property Doctrine_Collection $IN_DET_COTIZACION_16
 * @property Doctrine_Collection $IN_DET_COTIZACION_17
 * @property Doctrine_Collection $IN_DET_COTIZACION_18
 * @property Doctrine_Collection $IN_DET_CONTRATO
 * @property Doctrine_Collection $IN_DET_CONTRATO_20
 * @property Doctrine_Collection $IN_DET_CONTRATO_21
 * @property Doctrine_Collection $IN_DET_CONTRATO_22
 * @property Doctrine_Collection $IN_DET_CONTRATO_23
 * @property Doctrine_Collection $IN_DET_CONTRATO_24
 * @property Doctrine_Collection $IN_DET_CONTRATO_25
 * @property Doctrine_Collection $IN_DET_CONTRATO_26
 * @property Doctrine_Collection $IN_DET_CONTRATO_27
 * 
 * @method integer             getIdSoliDetCompra()      Returns the current record's "id_soli_det_compra" 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             getIdCatalogo()           Returns the current record's "id_catalogo" value
 * @method integer             getIdLinea()              Returns the current record's "id_linea" value
 * @method integer             getIdClase()              Returns the current record's "id_clase" value
 * @method integer             getCantidad()             Returns the current record's "cantidad" 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 integer             getIdSoliCompra()         Returns the current record's "id_soli_compra" value
 * @method IN_CATALOGO         getINCATALOGO()           Returns the current record's "IN_CATALOGO" value
 * @method IN_CATALOGO         getINCATALOGO2()          Returns the current record's "IN_CATALOGO_2" value
 * @method IN_CATALOGO         getINCATALOGO3()          Returns the current record's "IN_CATALOGO_3" value
 * @method IN_CATALOGO         getINCATALOGO4()          Returns the current record's "IN_CATALOGO_4" value
 * @method IN_CATALOGO         getINCATALOGO5()          Returns the current record's "IN_CATALOGO_5" value
 * @method IN_CATALOGO         getINCATALOGO6()          Returns the current record's "IN_CATALOGO_6" value
 * @method IN_CATALOGO         getINCATALOGO7()          Returns the current record's "IN_CATALOGO_7" value
 * @method IN_CATALOGO         getINCATALOGO8()          Returns the current record's "IN_CATALOGO_8" value
 * @method IN_CATALOGO         getINCATALOGO9()          Returns the current record's "IN_CATALOGO_9" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA()         Returns the current record's "IN_SOLI_COMPRA" 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 IN_SOLI_COMPRA      getINSOLICOMPRA15()       Returns the current record's "IN_SOLI_COMPRA_15" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA16()       Returns the current record's "IN_SOLI_COMPRA_16" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA17()       Returns the current record's "IN_SOLI_COMPRA_17" value
 * @method IN_SOLI_COMPRA      getINSOLICOMPRA18()       Returns the current record's "IN_SOLI_COMPRA_18" value
 * @method Doctrine_Collection getINDETCOTIZACION()      Returns the current record's "IN_DET_COTIZACION" collection
 * @method Doctrine_Collection getINDETCOTIZACION11()    Returns the current record's "IN_DET_COTIZACION_11" collection
 * @method Doctrine_Collection getINDETCOTIZACION12()    Returns the current record's "IN_DET_COTIZACION_12" collection
 * @method Doctrine_Collection getINDETCOTIZACION13()    Returns the current record's "IN_DET_COTIZACION_13" collection
 * @method Doctrine_Collection getINDETCOTIZACION14()    Returns the current record's "IN_DET_COTIZACION_14" collection
 * @method Doctrine_Collection getINDETCOTIZACION15()    Returns the current record's "IN_DET_COTIZACION_15" collection
 * @method Doctrine_Collection getINDETCOTIZACION16()    Returns the current record's "IN_DET_COTIZACION_16" collection
 * @method Doctrine_Collection getINDETCOTIZACION17()    Returns the current record's "IN_DET_COTIZACION_17" collection
 * @method Doctrine_Collection getINDETCOTIZACION18()    Returns the current record's "IN_DET_COTIZACION_18" collection
 * @method Doctrine_Collection getINDETCONTRATO()        Returns the current record's "IN_DET_CONTRATO" collection
 * @method Doctrine_Collection getINDETCONTRATO20()      Returns the current record's "IN_DET_CONTRATO_20" collection
 * @method Doctrine_Collection getINDETCONTRATO21()      Returns the current record's "IN_DET_CONTRATO_21" collection
 * @method Doctrine_Collection getINDETCONTRATO22()      Returns the current record's "IN_DET_CONTRATO_22" collection
 * @method Doctrine_Collection getINDETCONTRATO23()      Returns the current record's "IN_DET_CONTRATO_23" collection
 * @method Doctrine_Collection getINDETCONTRATO24()      Returns the current record's "IN_DET_CONTRATO_24" collection
 * @method Doctrine_Collection getINDETCONTRATO25()      Returns the current record's "IN_DET_CONTRATO_25" collection
 * @method Doctrine_Collection getINDETCONTRATO26()      Returns the current record's "IN_DET_CONTRATO_26" collection
 * @method Doctrine_Collection getINDETCONTRATO27()      Returns the current record's "IN_DET_CONTRATO_27" collection
 * @method IN_SOLI_DET_COMPRA  setIdSoliDetCompra()      Sets the current record's "id_soli_det_compra" value
 * @method IN_SOLI_DET_COMPRA  setIdVigencia()           Sets the current record's "id_vigencia" value
 * @method IN_SOLI_DET_COMPRA  setIdCenOp()              Sets the current record's "id_cen_op" value
 * @method IN_SOLI_DET_COMPRA  setIdCatalogo()           Sets the current record's "id_catalogo" value
 * @method IN_SOLI_DET_COMPRA  setIdLinea()              Sets the current record's "id_linea" value
 * @method IN_SOLI_DET_COMPRA  setIdClase()              Sets the current record's "id_clase" value
 * @method IN_SOLI_DET_COMPRA  setCantidad()             Sets the current record's "cantidad" value
 * @method IN_SOLI_DET_COMPRA  setObservaciones()        Sets the current record's "observaciones" value
 * @method IN_SOLI_DET_COMPRA  setEstado()               Sets the current record's "estado" value
 * @method IN_SOLI_DET_COMPRA  setAnulado()              Sets the current record's "anulado" value
 * @method IN_SOLI_DET_COMPRA  setIdSoliCompra()         Sets the current record's "id_soli_compra" value
 * @method IN_SOLI_DET_COMPRA  setINCATALOGO()           Sets the current record's "IN_CATALOGO" value
 * @method IN_SOLI_DET_COMPRA  setINCATALOGO2()          Sets the current record's "IN_CATALOGO_2" value
 * @method IN_SOLI_DET_COMPRA  setINCATALOGO3()          Sets the current record's "IN_CATALOGO_3" value
 * @method IN_SOLI_DET_COMPRA  setINCATALOGO4()          Sets the current record's "IN_CATALOGO_4" value
 * @method IN_SOLI_DET_COMPRA  setINCATALOGO5()          Sets the current record's "IN_CATALOGO_5" value
 * @method IN_SOLI_DET_COMPRA  setINCATALOGO6()          Sets the current record's "IN_CATALOGO_6" value
 * @method IN_SOLI_DET_COMPRA  setINCATALOGO7()          Sets the current record's "IN_CATALOGO_7" value
 * @method IN_SOLI_DET_COMPRA  setINCATALOGO8()          Sets the current record's "IN_CATALOGO_8" value
 * @method IN_SOLI_DET_COMPRA  setINCATALOGO9()          Sets the current record's "IN_CATALOGO_9" value
 * @method IN_SOLI_DET_COMPRA  setINSOLICOMPRA()         Sets the current record's "IN_SOLI_COMPRA" value
 * @method IN_SOLI_DET_COMPRA  setINSOLICOMPRA11()       Sets the current record's "IN_SOLI_COMPRA_11" value
 * @method IN_SOLI_DET_COMPRA  setINSOLICOMPRA12()       Sets the current record's "IN_SOLI_COMPRA_12" value
 * @method IN_SOLI_DET_COMPRA  setINSOLICOMPRA13()       Sets the current record's "IN_SOLI_COMPRA_13" value
 * @method IN_SOLI_DET_COMPRA  setINSOLICOMPRA14()       Sets the current record's "IN_SOLI_COMPRA_14" value
 * @method IN_SOLI_DET_COMPRA  setINSOLICOMPRA15()       Sets the current record's "IN_SOLI_COMPRA_15" value
 * @method IN_SOLI_DET_COMPRA  setINSOLICOMPRA16()       Sets the current record's "IN_SOLI_COMPRA_16" value
 * @method IN_SOLI_DET_COMPRA  setINSOLICOMPRA17()       Sets the current record's "IN_SOLI_COMPRA_17" value
 * @method IN_SOLI_DET_COMPRA  setINSOLICOMPRA18()       Sets the current record's "IN_SOLI_COMPRA_18" value
 * @method IN_SOLI_DET_COMPRA  setINDETCOTIZACION()      Sets the current record's "IN_DET_COTIZACION" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCOTIZACION11()    Sets the current record's "IN_DET_COTIZACION_11" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCOTIZACION12()    Sets the current record's "IN_DET_COTIZACION_12" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCOTIZACION13()    Sets the current record's "IN_DET_COTIZACION_13" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCOTIZACION14()    Sets the current record's "IN_DET_COTIZACION_14" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCOTIZACION15()    Sets the current record's "IN_DET_COTIZACION_15" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCOTIZACION16()    Sets the current record's "IN_DET_COTIZACION_16" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCOTIZACION17()    Sets the current record's "IN_DET_COTIZACION_17" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCOTIZACION18()    Sets the current record's "IN_DET_COTIZACION_18" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCONTRATO()        Sets the current record's "IN_DET_CONTRATO" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCONTRATO20()      Sets the current record's "IN_DET_CONTRATO_20" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCONTRATO21()      Sets the current record's "IN_DET_CONTRATO_21" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCONTRATO22()      Sets the current record's "IN_DET_CONTRATO_22" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCONTRATO23()      Sets the current record's "IN_DET_CONTRATO_23" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCONTRATO24()      Sets the current record's "IN_DET_CONTRATO_24" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCONTRATO25()      Sets the current record's "IN_DET_CONTRATO_25" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCONTRATO26()      Sets the current record's "IN_DET_CONTRATO_26" collection
 * @method IN_SOLI_DET_COMPRA  setINDETCONTRATO27()      Sets the current record's "IN_DET_CONTRATO_27" 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_SOLI_DET_COMPRA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_SOLI_DET_COMPRA');
        $this->hasColumn('id_soli_det_compra', '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_cen_op', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_catalogo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_linea', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_clase', '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,
             'primary' => false,
             'length' => 8,
             ));
        $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('id_soli_compra', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_2', array(
             'local' => 'id_linea',
             'foreign' => 'id_catalogo'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_3', array(
             'local' => 'id_clase',
             'foreign' => 'id_catalogo'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_4', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_5', array(
             'local' => 'id_linea',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_6', array(
             'local' => 'id_clase',
             'foreign' => 'id_clase'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_7', array(
             'local' => 'id_catalogo',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_8', array(
             'local' => 'id_linea',
             'foreign' => 'id_linea'));

        $this->hasOne('IN_CATALOGO as IN_CATALOGO_9', array(
             'local' => 'id_clase',
             'foreign' => 'id_linea'));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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