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

/**
 * BaseIN_SOLI_COMPRA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_soli_compra
 * @property integer $id_vigencia
 * @property integer $id_cen_op
 * @property integer $id_area
 * @property integer $id_mae_ter
 * @property string $observaciones
 * @property timestamp $fecha_solicitud
 * @property integer $estado
 * @property integer $anulado
 * @property timestamp $fecha_anu
 * @property string $motivo_anu
 * @property integer $id_usuario_anu
 * @property AREA $AREA
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property INTERCEROS $INTERCEROS
 * @property Doctrine_Collection $IN_SOLI_DET_COMPRA
 * @property Doctrine_Collection $IN_SOLI_DET_COMPRA_11
 * @property Doctrine_Collection $IN_SOLI_DET_COMPRA_12
 * @property Doctrine_Collection $IN_SOLI_DET_COMPRA_13
 * @property Doctrine_Collection $IN_SOLI_DET_COMPRA_14
 * @property Doctrine_Collection $IN_SOLI_DET_COMPRA_15
 * @property Doctrine_Collection $IN_SOLI_DET_COMPRA_16
 * @property Doctrine_Collection $IN_SOLI_DET_COMPRA_17
 * @property Doctrine_Collection $IN_SOLI_DET_COMPRA_18
 * @property Doctrine_Collection $IN_COTIZACION
 * @property Doctrine_Collection $IN_COTIZACION_7
 * @property Doctrine_Collection $IN_COTIZACION_8
 * @property Doctrine_Collection $IN_COTIZACION_9
 * @property Doctrine_Collection $IN_COTIZACION_10
 * @property Doctrine_Collection $IN_COTIZACION_11
 * @property Doctrine_Collection $IN_COTIZACION_12
 * @property Doctrine_Collection $IN_COTIZACION_13
 * @property Doctrine_Collection $IN_COTIZACION_14
 * @property Doctrine_Collection $IN_CONTRATO
 * @property Doctrine_Collection $IN_CONTRATO_12
 * @property Doctrine_Collection $IN_CONTRATO_13
 * @property Doctrine_Collection $IN_CONTRATO_14
 * @property Doctrine_Collection $IN_CONTRATO_15
 * @property Doctrine_Collection $IN_CONTRATO_16
 * @property Doctrine_Collection $IN_CONTRATO_17
 * @property Doctrine_Collection $IN_CONTRATO_18
 * @property Doctrine_Collection $IN_CONTRATO_19
 * 
 * @method integer             getIdSoliCompra()          Returns the current record's "id_soli_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             getIdArea()                Returns the current record's "id_area" value
 * @method integer             getIdMaeTer()              Returns the current record's "id_mae_ter" value
 * @method string              getObservaciones()         Returns the current record's "observaciones" value
 * @method timestamp           getFechaSolicitud()        Returns the current record's "fecha_solicitud" 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 AREA                getAREA()                  Returns the current record's "AREA" value
 * @method CENTRO_OPERACION    getCENTROOPERACION()       Returns the current record's "CENTRO_OPERACION" value
 * @method INTERCEROS          getINTERCEROS()            Returns the current record's "INTERCEROS" value
 * @method Doctrine_Collection getINSOLIDETCOMPRA()       Returns the current record's "IN_SOLI_DET_COMPRA" collection
 * @method Doctrine_Collection getINSOLIDETCOMPRA11()     Returns the current record's "IN_SOLI_DET_COMPRA_11" collection
 * @method Doctrine_Collection getINSOLIDETCOMPRA12()     Returns the current record's "IN_SOLI_DET_COMPRA_12" collection
 * @method Doctrine_Collection getINSOLIDETCOMPRA13()     Returns the current record's "IN_SOLI_DET_COMPRA_13" collection
 * @method Doctrine_Collection getINSOLIDETCOMPRA14()     Returns the current record's "IN_SOLI_DET_COMPRA_14" collection
 * @method Doctrine_Collection getINSOLIDETCOMPRA15()     Returns the current record's "IN_SOLI_DET_COMPRA_15" collection
 * @method Doctrine_Collection getINSOLIDETCOMPRA16()     Returns the current record's "IN_SOLI_DET_COMPRA_16" collection
 * @method Doctrine_Collection getINSOLIDETCOMPRA17()     Returns the current record's "IN_SOLI_DET_COMPRA_17" collection
 * @method Doctrine_Collection getINSOLIDETCOMPRA18()     Returns the current record's "IN_SOLI_DET_COMPRA_18" collection
 * @method Doctrine_Collection getINCOTIZACION()          Returns the current record's "IN_COTIZACION" collection
 * @method Doctrine_Collection getINCOTIZACION7()         Returns the current record's "IN_COTIZACION_7" collection
 * @method Doctrine_Collection getINCOTIZACION8()         Returns the current record's "IN_COTIZACION_8" collection
 * @method Doctrine_Collection getINCOTIZACION9()         Returns the current record's "IN_COTIZACION_9" collection
 * @method Doctrine_Collection getINCOTIZACION10()        Returns the current record's "IN_COTIZACION_10" collection
 * @method Doctrine_Collection getINCOTIZACION11()        Returns the current record's "IN_COTIZACION_11" collection
 * @method Doctrine_Collection getINCOTIZACION12()        Returns the current record's "IN_COTIZACION_12" collection
 * @method Doctrine_Collection getINCOTIZACION13()        Returns the current record's "IN_COTIZACION_13" collection
 * @method Doctrine_Collection getINCOTIZACION14()        Returns the current record's "IN_COTIZACION_14" collection
 * @method Doctrine_Collection getINCONTRATO()            Returns the current record's "IN_CONTRATO" collection
 * @method Doctrine_Collection getINCONTRATO12()          Returns the current record's "IN_CONTRATO_12" collection
 * @method Doctrine_Collection getINCONTRATO13()          Returns the current record's "IN_CONTRATO_13" collection
 * @method Doctrine_Collection getINCONTRATO14()          Returns the current record's "IN_CONTRATO_14" collection
 * @method Doctrine_Collection getINCONTRATO15()          Returns the current record's "IN_CONTRATO_15" collection
 * @method Doctrine_Collection getINCONTRATO16()          Returns the current record's "IN_CONTRATO_16" collection
 * @method Doctrine_Collection getINCONTRATO17()          Returns the current record's "IN_CONTRATO_17" collection
 * @method Doctrine_Collection getINCONTRATO18()          Returns the current record's "IN_CONTRATO_18" collection
 * @method Doctrine_Collection getINCONTRATO19()          Returns the current record's "IN_CONTRATO_19" collection
 * @method IN_SOLI_COMPRA      setIdSoliCompra()          Sets the current record's "id_soli_compra" value
 * @method IN_SOLI_COMPRA      setIdVigencia()            Sets the current record's "id_vigencia" value
 * @method IN_SOLI_COMPRA      setIdCenOp()               Sets the current record's "id_cen_op" value
 * @method IN_SOLI_COMPRA      setIdArea()                Sets the current record's "id_area" value
 * @method IN_SOLI_COMPRA      setIdMaeTer()              Sets the current record's "id_mae_ter" value
 * @method IN_SOLI_COMPRA      setObservaciones()         Sets the current record's "observaciones" value
 * @method IN_SOLI_COMPRA      setFechaSolicitud()        Sets the current record's "fecha_solicitud" value
 * @method IN_SOLI_COMPRA      setEstado()                Sets the current record's "estado" value
 * @method IN_SOLI_COMPRA      setAnulado()               Sets the current record's "anulado" value
 * @method IN_SOLI_COMPRA      setFechaAnu()              Sets the current record's "fecha_anu" value
 * @method IN_SOLI_COMPRA      setMotivoAnu()             Sets the current record's "motivo_anu" value
 * @method IN_SOLI_COMPRA      setIdUsuarioAnu()          Sets the current record's "id_usuario_anu" value
 * @method IN_SOLI_COMPRA      setAREA()                  Sets the current record's "AREA" value
 * @method IN_SOLI_COMPRA      setCENTROOPERACION()       Sets the current record's "CENTRO_OPERACION" value
 * @method IN_SOLI_COMPRA      setINTERCEROS()            Sets the current record's "INTERCEROS" value
 * @method IN_SOLI_COMPRA      setINSOLIDETCOMPRA()       Sets the current record's "IN_SOLI_DET_COMPRA" collection
 * @method IN_SOLI_COMPRA      setINSOLIDETCOMPRA11()     Sets the current record's "IN_SOLI_DET_COMPRA_11" collection
 * @method IN_SOLI_COMPRA      setINSOLIDETCOMPRA12()     Sets the current record's "IN_SOLI_DET_COMPRA_12" collection
 * @method IN_SOLI_COMPRA      setINSOLIDETCOMPRA13()     Sets the current record's "IN_SOLI_DET_COMPRA_13" collection
 * @method IN_SOLI_COMPRA      setINSOLIDETCOMPRA14()     Sets the current record's "IN_SOLI_DET_COMPRA_14" collection
 * @method IN_SOLI_COMPRA      setINSOLIDETCOMPRA15()     Sets the current record's "IN_SOLI_DET_COMPRA_15" collection
 * @method IN_SOLI_COMPRA      setINSOLIDETCOMPRA16()     Sets the current record's "IN_SOLI_DET_COMPRA_16" collection
 * @method IN_SOLI_COMPRA      setINSOLIDETCOMPRA17()     Sets the current record's "IN_SOLI_DET_COMPRA_17" collection
 * @method IN_SOLI_COMPRA      setINSOLIDETCOMPRA18()     Sets the current record's "IN_SOLI_DET_COMPRA_18" collection
 * @method IN_SOLI_COMPRA      setINCOTIZACION()          Sets the current record's "IN_COTIZACION" collection
 * @method IN_SOLI_COMPRA      setINCOTIZACION7()         Sets the current record's "IN_COTIZACION_7" collection
 * @method IN_SOLI_COMPRA      setINCOTIZACION8()         Sets the current record's "IN_COTIZACION_8" collection
 * @method IN_SOLI_COMPRA      setINCOTIZACION9()         Sets the current record's "IN_COTIZACION_9" collection
 * @method IN_SOLI_COMPRA      setINCOTIZACION10()        Sets the current record's "IN_COTIZACION_10" collection
 * @method IN_SOLI_COMPRA      setINCOTIZACION11()        Sets the current record's "IN_COTIZACION_11" collection
 * @method IN_SOLI_COMPRA      setINCOTIZACION12()        Sets the current record's "IN_COTIZACION_12" collection
 * @method IN_SOLI_COMPRA      setINCOTIZACION13()        Sets the current record's "IN_COTIZACION_13" collection
 * @method IN_SOLI_COMPRA      setINCOTIZACION14()        Sets the current record's "IN_COTIZACION_14" collection
 * @method IN_SOLI_COMPRA      setINCONTRATO()            Sets the current record's "IN_CONTRATO" collection
 * @method IN_SOLI_COMPRA      setINCONTRATO12()          Sets the current record's "IN_CONTRATO_12" collection
 * @method IN_SOLI_COMPRA      setINCONTRATO13()          Sets the current record's "IN_CONTRATO_13" collection
 * @method IN_SOLI_COMPRA      setINCONTRATO14()          Sets the current record's "IN_CONTRATO_14" collection
 * @method IN_SOLI_COMPRA      setINCONTRATO15()          Sets the current record's "IN_CONTRATO_15" collection
 * @method IN_SOLI_COMPRA      setINCONTRATO16()          Sets the current record's "IN_CONTRATO_16" collection
 * @method IN_SOLI_COMPRA      setINCONTRATO17()          Sets the current record's "IN_CONTRATO_17" collection
 * @method IN_SOLI_COMPRA      setINCONTRATO18()          Sets the current record's "IN_CONTRATO_18" collection
 * @method IN_SOLI_COMPRA      setINCONTRATO19()          Sets the current record's "IN_CONTRATO_19" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_SOLI_COMPRA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_SOLI_COMPRA');
        $this->hasColumn('id_soli_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_area', '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('observaciones', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('fecha_solicitud', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $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,
             ));
    }

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

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

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

        $this->hasMany('IN_SOLI_DET_COMPRA', array(
             'local' => 'id_soli_compra',
             'foreign' => 'id_vigencia'));

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

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

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

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

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

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

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

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

        $this->hasMany('IN_COTIZACION', array(
             'local' => 'id_soli_compra',
             'foreign' => 'id_cen_op'));

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

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

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

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

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

        $this->hasMany('IN_COTIZACION as IN_COTIZACION_12', array(
             'local' => 'id_soli_compra',
             'foreign' => 'id_soli_compra'));

        $this->hasMany('IN_COTIZACION as IN_COTIZACION_13', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_soli_compra'));

        $this->hasMany('IN_COTIZACION as IN_COTIZACION_14', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_soli_compra'));

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

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

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

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

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

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

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

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

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