<?php

// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('CACO_NOVEDAD_CONTRATO', 'doctrine');

/**
 * BaseCACO_NOVEDAD_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_contrato
 * @property integer $id_contrato
 * @property integer $id_ts_td
 * @property string $doc_soporte
 * @property integer $id_tipo_nov_cont
 * @property timestamp $fecha_novedad
 * @property string $observaciones
 * @property timestamp $fecha_log
 * @property string $usuario_log
 * @property CACO_CONTRATO $CACO_CONTRATO
 * @property CACO_TIPO_NOV_CONT $CACO_TIPO_NOV_CONT
 * @property TS_TD $TS_TD
 * 
 * @method integer               getIdNovedadContrato()   Returns the current record's "id_novedad_contrato" value
 * @method integer               getIdContrato()          Returns the current record's "id_contrato" value
 * @method integer               getIdTsTd()              Returns the current record's "id_ts_td" value
 * @method string                getDocSoporte()          Returns the current record's "doc_soporte" value
 * @method integer               getIdTipoNovCont()       Returns the current record's "id_tipo_nov_cont" value
 * @method timestamp             getFechaNovedad()        Returns the current record's "fecha_novedad" value
 * @method string                getObservaciones()       Returns the current record's "observaciones" value
 * @method timestamp             getFechaLog()            Returns the current record's "fecha_log" value
 * @method string                getUsuarioLog()          Returns the current record's "usuario_log" value
 * @method CACO_CONTRATO         getCACOCONTRATO()        Returns the current record's "CACO_CONTRATO" value
 * @method CACO_TIPO_NOV_CONT    getCACOTIPONOVCONT()     Returns the current record's "CACO_TIPO_NOV_CONT" value
 * @method TS_TD                 getTSTD()                Returns the current record's "TS_TD" value
 * @method CACO_NOVEDAD_CONTRATO setIdNovedadContrato()   Sets the current record's "id_novedad_contrato" value
 * @method CACO_NOVEDAD_CONTRATO setIdContrato()          Sets the current record's "id_contrato" value
 * @method CACO_NOVEDAD_CONTRATO setIdTsTd()              Sets the current record's "id_ts_td" value
 * @method CACO_NOVEDAD_CONTRATO setDocSoporte()          Sets the current record's "doc_soporte" value
 * @method CACO_NOVEDAD_CONTRATO setIdTipoNovCont()       Sets the current record's "id_tipo_nov_cont" value
 * @method CACO_NOVEDAD_CONTRATO setFechaNovedad()        Sets the current record's "fecha_novedad" value
 * @method CACO_NOVEDAD_CONTRATO setObservaciones()       Sets the current record's "observaciones" value
 * @method CACO_NOVEDAD_CONTRATO setFechaLog()            Sets the current record's "fecha_log" value
 * @method CACO_NOVEDAD_CONTRATO setUsuarioLog()          Sets the current record's "usuario_log" value
 * @method CACO_NOVEDAD_CONTRATO setCACOCONTRATO()        Sets the current record's "CACO_CONTRATO" value
 * @method CACO_NOVEDAD_CONTRATO setCACOTIPONOVCONT()     Sets the current record's "CACO_TIPO_NOV_CONT" value
 * @method CACO_NOVEDAD_CONTRATO setTSTD()                Sets the current record's "TS_TD" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCACO_NOVEDAD_CONTRATO extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('CACO_NOVEDAD_CONTRATO');
        $this->hasColumn('id_novedad_contrato', '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_ts_td', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('doc_soporte', 'string', 20, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('id_tipo_nov_cont', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('fecha_novedad', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('observaciones', 'string', 4000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 4000,
        ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('usuario_log', 'string', 20, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('valor_desembolsado', 'decimal', 18, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 18,
        ));
        $this->hasColumn('valor_rendimientos', 'decimal', 18, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 18,
        ));
        $this->hasColumn('valor_no_ejecutado', 'decimal', 18, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 18,
        ));
        $this->hasColumn('valor_no_reconocido', 'decimal', 18, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 18,
        ));
        $this->hasColumn('indexacion', 'decimal', 18, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 18,
        ));
        $this->hasColumn('valor_intereses_banco', 'decimal', 18, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 18,
        ));
        $this->hasColumn('valor_intereses_mora', 'decimal', 18, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 18,
        ));
        $this->hasColumn('reintegros_efectuados', 'decimal', 18, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 18,
        ));
        $this->hasColumn('no_certificado', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('destinatario', 'string', 1000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1000,
        ));
        $this->hasColumn('destinatario_cargo', 'string', 1000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1000,
        ));
        $this->hasColumn('no_radicado', 'string', 20, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('objeto', 'string', 4000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 4000,
        ));
        $this->hasColumn('fecha_legalizacion', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('dias_leg', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('obser_indexacion', 'string', 1000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1000,
        ));
        $this->hasColumn('obser_interes_mora', 'string', 1000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1000,
        ));
        $this->hasColumn('obser_interes_banco', 'string', 1000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1000,
        ));
        $this->hasColumn('obser_saldo_pendiente', 'string', 1000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1000,
        ));
        $this->hasColumn('anexo_cetificado', 'string', 4000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 4000,
        ));
        $this->hasColumn('valor_ajuste_banco', 'decimal', 18, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 18,
        ));
        $this->hasColumn('valor_ajuste_mora', 'decimal', 18, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 18,
        ));
        $this->hasColumn('valor_ajuste_indexacion', 'decimal', 18, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 18,
        ));

        $this->hasColumn('fecha_legalizacion_limite', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('aplica_dia_ant', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
    }

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

        $this->hasOne('CACO_TIPO_NOV_CONT', array(
            'local' => 'id_tipo_nov_cont',
            'foreign' => 'id_tipo_nov_cont'));

        $this->hasOne('TS_TD', array(
            'local' => 'id_ts_td',
            'foreign' => 'id'));
    }

}
