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

/**
 * BaseRE_NOV_RECAUDO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_recaudo
 * @property integer $id_nov_recaudo
 * @property string $id_lote
 * @property integer $id_distribucion
 * @property decimal $saldo_anterior
 * @property decimal $saldo_lote
 * @property decimal $saldo_actual
 * @property integer $estado_anterior
 * @property integer $estado_actual
 * @property integer $tipo_novedad
 * @property RE_RECAUDO $RE_RECAUDO
 * @property RE_LOTE $RE_LOTE
 * @property RE_DISTRIBUCION $RE_DISTRIBUCION
 * 
 * @method integer         getIdRecaudo()       Returns the current record's "id_recaudo" value
 * @method integer         getIdNovRecaudo()    Returns the current record's "id_nov_recaudo" value
 * @method string          getIdLote()          Returns the current record's "id_lote" value
 * @method integer         getIdDistribucion()  Returns the current record's "id_distribucion" value
 * @method decimal         getSaldoAnterior()   Returns the current record's "saldo_anterior" value
 * @method decimal         getSaldoLote()       Returns the current record's "saldo_lote" value
 * @method decimal         getSaldoActual()     Returns the current record's "saldo_actual" value
 * @method integer         getEstadoAnterior()  Returns the current record's "estado_anterior" value
 * @method integer         getEstadoActual()    Returns the current record's "estado_actual" value
 * @method integer         getTipoNovedad()     Returns the current record's "tipo_novedad" value
 * @method RE_RECAUDO      getRERECAUDO()       Returns the current record's "RE_RECAUDO" value
 * @method RE_LOTE         getRELOTE()          Returns the current record's "RE_LOTE" value
 * @method RE_DISTRIBUCION getREDISTRIBUCION()  Returns the current record's "RE_DISTRIBUCION" value
 * @method RE_NOV_RECAUDO  setIdRecaudo()       Sets the current record's "id_recaudo" value
 * @method RE_NOV_RECAUDO  setIdNovRecaudo()    Sets the current record's "id_nov_recaudo" value
 * @method RE_NOV_RECAUDO  setIdLote()          Sets the current record's "id_lote" value
 * @method RE_NOV_RECAUDO  setIdDistribucion()  Sets the current record's "id_distribucion" value
 * @method RE_NOV_RECAUDO  setSaldoAnterior()   Sets the current record's "saldo_anterior" value
 * @method RE_NOV_RECAUDO  setSaldoLote()       Sets the current record's "saldo_lote" value
 * @method RE_NOV_RECAUDO  setSaldoActual()     Sets the current record's "saldo_actual" value
 * @method RE_NOV_RECAUDO  setEstadoAnterior()  Sets the current record's "estado_anterior" value
 * @method RE_NOV_RECAUDO  setEstadoActual()    Sets the current record's "estado_actual" value
 * @method RE_NOV_RECAUDO  setTipoNovedad()     Sets the current record's "tipo_novedad" value
 * @method RE_NOV_RECAUDO  setRERECAUDO()       Sets the current record's "RE_RECAUDO" value
 * @method RE_NOV_RECAUDO  setRELOTE()          Sets the current record's "RE_LOTE" value
 * @method RE_NOV_RECAUDO  setREDISTRIBUCION()  Sets the current record's "RE_DISTRIBUCION" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_NOV_RECAUDO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_NOV_RECAUDO');
        $this->hasColumn('id_recaudo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_nov_recaudo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_lote', 'string', 9, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 9,
             ));
        $this->hasColumn('id_distribucion', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('saldo_anterior', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('saldo_lote', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('saldo_actual', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('estado_anterior', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado_actual', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('tipo_novedad', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('RE_LOTE', array(
             'local' => 'id_lote',
             'foreign' => 'id_lote'));

        $this->hasOne('RE_DISTRIBUCION', array(
             'local' => 'id_recaudo',
             'foreign' => 'id_distribucion'));
    }
}