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

/**
 * BaseCO_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_contrato
 * @property integer $no_contrato
 * @property integer $id_anhos
 * @property integer $id_seleccion_ep
 * @property integer $id_tipo_contrato
 * @property integer $id_sel_oferente
 * @property integer $id_contratista
 * @property integer $id_rp
 * @property string $plazo
 * @property decimal $valor
 * @property integer $estado
 * @property timestamp $fecha_aprobacion
 * @property integer $activo
 * @property string $adjunto_contrato
 * @property timestamp $fecha_pago
 * @property string $objeto
 * @property integer $timbre
 * @property timestamp $fecha_inicio
 * @property timestamp $fecha_anu
 * @property string $motivo_anu
 * @property timestamp $fecha_terminacion
 * @property integer $id_supervisor
 * @property integer $liquidado
 * @property integer $id_ordenador_gasto
 * @property integer $interventoria
 * @property integer $id_interventor
 * @property integer $id_tipo_convenio
 * @property integer $valor_anticipo
 * @property string $observacion_supervisor
 * @property string $observacion_interventor
 * @property integer $porcentaje_anticipo
 * @property integer $id_inicio_contrato
 * @property string $plazo_interventor
 * @property integer $terminacion
 * @property integer $dias_plazo
 * @property integer $meses_plazo
 * @property string $adjunto_rut
 * @property integer $anhos_plazo
 * @property integer $liquidacion
 * @property integer $no_pagos
 * @property integer $meses_liquida
 * @property integer $carta_aceptacion
 * @property string $adjunto_resolucion
 * @property timestamp $fecha_contrato
 * @property integer $capacidad_contra
 * @property string $conf_juridica
 * @property integer $id_categoria
 * 
 * @method integer     getIdContrato()              Returns the current record's "id_contrato" value
 * @method integer     getNoContrato()              Returns the current record's "no_contrato" value
 * @method integer     getIdAnhos()                 Returns the current record's "id_anhos" value
 * @method integer     getIdSeleccionEp()           Returns the current record's "id_seleccion_ep" value
 * @method integer     getIdTipoContrato()          Returns the current record's "id_tipo_contrato" value
 * @method integer     getIdSelOferente()           Returns the current record's "id_sel_oferente" value
 * @method integer     getIdContratista()           Returns the current record's "id_contratista" value
 * @method integer     getIdRp()                    Returns the current record's "id_rp" value
 * @method string      getPlazo()                   Returns the current record's "plazo" value
 * @method decimal     getValor()                   Returns the current record's "valor" value
 * @method integer     getEstado()                  Returns the current record's "estado" value
 * @method timestamp   getFechaAprobacion()         Returns the current record's "fecha_aprobacion" value
 * @method integer     getActivo()                  Returns the current record's "activo" value
 * @method string      getAdjuntoContrato()         Returns the current record's "adjunto_contrato" value
 * @method timestamp   getFechaPago()               Returns the current record's "fecha_pago" value
 * @method string      getObjeto()                  Returns the current record's "objeto" value
 * @method integer     getTimbre()                  Returns the current record's "timbre" value
 * @method timestamp   getFechaInicio()             Returns the current record's "fecha_inicio" value
 * @method timestamp   getFechaAnu()                Returns the current record's "fecha_anu" value
 * @method string      getMotivoAnu()               Returns the current record's "motivo_anu" value
 * @method timestamp   getFechaTerminacion()        Returns the current record's "fecha_terminacion" value
 * @method integer     getIdSupervisor()            Returns the current record's "id_supervisor" value
 * @method integer     getLiquidado()               Returns the current record's "liquidado" value
 * @method integer     getIdOrdenadorGasto()        Returns the current record's "id_ordenador_gasto" value
 * @method integer     getInterventoria()           Returns the current record's "interventoria" value
 * @method integer     getIdInterventor()           Returns the current record's "id_interventor" value
 * @method integer     getIdTipoConvenio()          Returns the current record's "id_tipo_convenio" value
 * @method integer     getValorAnticipo()           Returns the current record's "valor_anticipo" value
 * @method string      getObservacionSupervisor()   Returns the current record's "observacion_supervisor" value
 * @method string      getObservacionInterventor()  Returns the current record's "observacion_interventor" value
 * @method integer     getPorcentajeAnticipo()      Returns the current record's "porcentaje_anticipo" value
 * @method integer     getIdInicioContrato()        Returns the current record's "id_inicio_contrato" value
 * @method string      getPlazoInterventor()        Returns the current record's "plazo_interventor" value
 * @method integer     getTerminacion()             Returns the current record's "terminacion" value
 * @method integer     getDiasPlazo()               Returns the current record's "dias_plazo" value
 * @method integer     getMesesPlazo()              Returns the current record's "meses_plazo" value
 * @method string      getAdjuntoRut()              Returns the current record's "adjunto_rut" value
 * @method integer     getAnhosPlazo()              Returns the current record's "anhos_plazo" value
 * @method integer     getLiquidacion()             Returns the current record's "liquidacion" value
 * @method integer     getNoPagos()                 Returns the current record's "no_pagos" value
 * @method integer     getMesesLiquida()            Returns the current record's "meses_liquida" value
 * @method integer     getCartaAceptacion()         Returns the current record's "carta_aceptacion" value
 * @method string      getAdjuntoResolucion()       Returns the current record's "adjunto_resolucion" value
 * @method timestamp   getFechaContrato()           Returns the current record's "fecha_contrato" value
 * @method integer     getCapacidadContra()         Returns the current record's "capacidad_contra" value
 * @method string      getConfJuridica()            Returns the current record's "conf_juridica" value
 * @method integer     getIdCategoria()             Returns the current record's "id_categoria" value
 * @method CO_CONTRATO setIdContrato()              Sets the current record's "id_contrato" value
 * @method CO_CONTRATO setNoContrato()              Sets the current record's "no_contrato" value
 * @method CO_CONTRATO setIdAnhos()                 Sets the current record's "id_anhos" value
 * @method CO_CONTRATO setIdSeleccionEp()           Sets the current record's "id_seleccion_ep" value
 * @method CO_CONTRATO setIdTipoContrato()          Sets the current record's "id_tipo_contrato" value
 * @method CO_CONTRATO setIdSelOferente()           Sets the current record's "id_sel_oferente" value
 * @method CO_CONTRATO setIdContratista()           Sets the current record's "id_contratista" value
 * @method CO_CONTRATO setIdRp()                    Sets the current record's "id_rp" value
 * @method CO_CONTRATO setPlazo()                   Sets the current record's "plazo" value
 * @method CO_CONTRATO setValor()                   Sets the current record's "valor" value
 * @method CO_CONTRATO setEstado()                  Sets the current record's "estado" value
 * @method CO_CONTRATO setFechaAprobacion()         Sets the current record's "fecha_aprobacion" value
 * @method CO_CONTRATO setActivo()                  Sets the current record's "activo" value
 * @method CO_CONTRATO setAdjuntoContrato()         Sets the current record's "adjunto_contrato" value
 * @method CO_CONTRATO setFechaPago()               Sets the current record's "fecha_pago" value
 * @method CO_CONTRATO setObjeto()                  Sets the current record's "objeto" value
 * @method CO_CONTRATO setTimbre()                  Sets the current record's "timbre" value
 * @method CO_CONTRATO setFechaInicio()             Sets the current record's "fecha_inicio" value
 * @method CO_CONTRATO setFechaAnu()                Sets the current record's "fecha_anu" value
 * @method CO_CONTRATO setMotivoAnu()               Sets the current record's "motivo_anu" value
 * @method CO_CONTRATO setFechaTerminacion()        Sets the current record's "fecha_terminacion" value
 * @method CO_CONTRATO setIdSupervisor()            Sets the current record's "id_supervisor" value
 * @method CO_CONTRATO setLiquidado()               Sets the current record's "liquidado" value
 * @method CO_CONTRATO setIdOrdenadorGasto()        Sets the current record's "id_ordenador_gasto" value
 * @method CO_CONTRATO setInterventoria()           Sets the current record's "interventoria" value
 * @method CO_CONTRATO setIdInterventor()           Sets the current record's "id_interventor" value
 * @method CO_CONTRATO setIdTipoConvenio()          Sets the current record's "id_tipo_convenio" value
 * @method CO_CONTRATO setValorAnticipo()           Sets the current record's "valor_anticipo" value
 * @method CO_CONTRATO setObservacionSupervisor()   Sets the current record's "observacion_supervisor" value
 * @method CO_CONTRATO setObservacionInterventor()  Sets the current record's "observacion_interventor" value
 * @method CO_CONTRATO setPorcentajeAnticipo()      Sets the current record's "porcentaje_anticipo" value
 * @method CO_CONTRATO setIdInicioContrato()        Sets the current record's "id_inicio_contrato" value
 * @method CO_CONTRATO setPlazoInterventor()        Sets the current record's "plazo_interventor" value
 * @method CO_CONTRATO setTerminacion()             Sets the current record's "terminacion" value
 * @method CO_CONTRATO setDiasPlazo()               Sets the current record's "dias_plazo" value
 * @method CO_CONTRATO setMesesPlazo()              Sets the current record's "meses_plazo" value
 * @method CO_CONTRATO setAdjuntoRut()              Sets the current record's "adjunto_rut" value
 * @method CO_CONTRATO setAnhosPlazo()              Sets the current record's "anhos_plazo" value
 * @method CO_CONTRATO setLiquidacion()             Sets the current record's "liquidacion" value
 * @method CO_CONTRATO setNoPagos()                 Sets the current record's "no_pagos" value
 * @method CO_CONTRATO setMesesLiquida()            Sets the current record's "meses_liquida" value
 * @method CO_CONTRATO setCartaAceptacion()         Sets the current record's "carta_aceptacion" value
 * @method CO_CONTRATO setAdjuntoResolucion()       Sets the current record's "adjunto_resolucion" value
 * @method CO_CONTRATO setFechaContrato()           Sets the current record's "fecha_contrato" value
 * @method CO_CONTRATO setCapacidadContra()         Sets the current record's "capacidad_contra" value
 * @method CO_CONTRATO setConfJuridica()            Sets the current record's "conf_juridica" value
 * @method CO_CONTRATO setIdCategoria()             Sets the current record's "id_categoria" value
 * 
 * @package    radicacionVirtualCuentas
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCO_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CO_CONTRATO');
        $this->hasColumn('id_contrato', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('no_contrato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_seleccion_ep', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_contrato', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_sel_oferente', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_contratista', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_rp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('plazo', 'string', 250, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_aprobacion', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('activo', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('adjunto_contrato', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('fecha_pago', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('objeto', 'string', 4000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('timbre', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_inicio', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_anu', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_anu', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('fecha_terminacion', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_supervisor', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('liquidado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_ordenador_gasto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('interventoria', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_interventor', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_convenio', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_anticipo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('observacion_supervisor', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('observacion_interventor', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('porcentaje_anticipo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_inicio_contrato', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('plazo_interventor', 'string', 250, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('terminacion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('dias_plazo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('meses_plazo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('adjunto_rut', 'string', 250, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('anhos_plazo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('liquidacion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_pagos', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('meses_liquida', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('carta_aceptacion', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('adjunto_resolucion', 'string', 250, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('fecha_contrato', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('capacidad_contra', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('conf_juridica', 'string', 250, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
        $this->hasColumn('id_categoria', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}