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

/**
 * BaseCACO_NOVEDAD_DESEMBOLSO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_desembolso
 * @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_desembolso" 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_DESEMBOLSO setIdNovedadDesembolso()   Sets the current record's "id_novedad_desembolso" value
 * @method CACO_NOVEDAD_DESEMBOLSO setIdContrato()            Sets the current record's "id_contrato" value
 * @method CACO_NOVEDAD_DESEMBOLSO setIdTsTd()                Sets the current record's "id_ts_td" value
 * @method CACO_NOVEDAD_DESEMBOLSO setDocSoporte()            Sets the current record's "doc_soporte" value
 * @method CACO_NOVEDAD_DESEMBOLSO setIdTipoRecurso()         Sets the current record's "id_tipo_recurso" value
 * @method CACO_NOVEDAD_DESEMBOLSO setFechaNovedad()          Sets the current record's "fecha_novedad" value
 * @method CACO_NOVEDAD_DESEMBOLSO setValorDesembolso()       Sets the current record's "valor_desembolso" value
 * @method CACO_NOVEDAD_DESEMBOLSO setObservaciones()         Sets the current record's "observaciones" value
 * @method CACO_NOVEDAD_DESEMBOLSO setFechaLog()              Sets the current record's "fecha_log" value
 * @method CACO_NOVEDAD_DESEMBOLSO setUsuarioLog()            Sets the current record's "usuario_log" value
 * @method CACO_NOVEDAD_DESEMBOLSO setCACOCONTRATO()          Sets the current record's "CACO_CONTRATO" value
 * @method CACO_NOVEDAD_DESEMBOLSO setCACOTIPORECURSO()       Sets the current record's "CACO_TIPO_RECURSO" value
 * @method CACO_NOVEDAD_DESEMBOLSO 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_DESEMBOLSO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CACO_NOVEDAD_DESEMBOLSO');
        $this->hasColumn('id_novedad_desembolso', '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_recurso', '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('valor_desembolso', '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('id_entidad_contrato', '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('CACO_TIPO_RECURSO', array(
             'local' => 'id_tipo_recurso',
             'foreign' => 'id_tipo_recurso'));

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