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

/**
 * BaseCACO_NOVEDAD_REINTEGRO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_reintegro
 * @property integer $id_contrato
 * @property integer $id_ts_td
 * @property string $doc_soporte
 * @property integer $id_tipo_recurso
 * @property timestamp $fecha_novedad
 * @property integer $valor_desembolso
 * @property string $observaciones
 * @property timestamp $fecha_log
 * @property string $usuario_log
 * @property CACO_CONTRATO $CACO_CONTRATO
 * @property CACO_TIPO_RECURSO $CACO_TIPO_RECURSO
 * @property TS_TD $TS_TD
 * 
 * @method integer                 getIdNovedadDesembolso()   Returns the current record's "id_novedad_reintegro" 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                 getIdTipoRecurso()         Returns the current record's "id_tipo_recurso" value
 * @method timestamp               getFechaNovedad()          Returns the current record's "fecha_novedad" value
 * @method integer                 getValorDesembolso()       Returns the current record's "valor_desembolso" 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_RECURSO       getCACOTIPORECURSO()       Returns the current record's "CACO_TIPO_RECURSO" value
 * @method TS_TD                   getTSTD()                  Returns the current record's "TS_TD" value
 * @method CACO_NOVEDAD_REINTEGRO setIdNovedadDesembolso()   Sets the current record's "id_novedad_reintegro" value
 * @method CACO_NOVEDAD_REINTEGRO setIdContrato()            Sets the current record's "id_contrato" value
 * @method CACO_NOVEDAD_REINTEGRO setIdTsTd()                Sets the current record's "id_ts_td" value
 * @method CACO_NOVEDAD_REINTEGRO setDocSoporte()            Sets the current record's "doc_soporte" value
 * @method CACO_NOVEDAD_REINTEGRO setIdTipoRecurso()         Sets the current record's "id_tipo_recurso" value
 * @method CACO_NOVEDAD_REINTEGRO setFechaNovedad()          Sets the current record's "fecha_novedad" value
 * @method CACO_NOVEDAD_REINTEGRO setValorDesembolso()       Sets the current record's "valor_desembolso" value
 * @method CACO_NOVEDAD_REINTEGRO setObservaciones()         Sets the current record's "observaciones" value
 * @method CACO_NOVEDAD_REINTEGRO setFechaLog()              Sets the current record's "fecha_log" value
 * @method CACO_NOVEDAD_REINTEGRO setUsuarioLog()            Sets the current record's "usuario_log" value
 * @method CACO_NOVEDAD_REINTEGRO setCACOCONTRATO()          Sets the current record's "CACO_CONTRATO" value
 * @method CACO_NOVEDAD_REINTEGRO setCACOTIPORECURSO()       Sets the current record's "CACO_TIPO_RECURSO" value
 * @method CACO_NOVEDAD_REINTEGRO 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_REINTEGRO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CACO_NOVEDAD_REINTEGRO');
        $this->hasColumn('id_novedad_reintegro', '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('tipo_valor', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_novedad', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor_reintegro', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $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_excedente', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_credito', 'integer', 8, array(
             '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('TS_TD', array(
             'local' => 'id_ts_td',
             'foreign' => 'id'));
    }
}