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

/**
 * BaseRE_LOTE_RECAUDO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $id_lote
 * @property integer $id_recaudo
 * @property decimal $valor
 * @property RE_LOTE $RE_LOTE
 * @property RE_RECAUDO $RE_RECAUDO
 * 
 * @method string          getIdLote()     Returns the current record's "id_lote" value
 * @method integer         getIdRecaudo()  Returns the current record's "id_recaudo" value
 * @method decimal         getValor()      Returns the current record's "valor" value
 * @method RE_LOTE         getRELOTE()     Returns the current record's "RE_LOTE" value
 * @method RE_RECAUDO      getRERECAUDO()  Returns the current record's "RE_RECAUDO" value
 * @method RE_LOTE_RECAUDO setIdLote()     Sets the current record's "id_lote" value
 * @method RE_LOTE_RECAUDO setIdRecaudo()  Sets the current record's "id_recaudo" value
 * @method RE_LOTE_RECAUDO setValor()      Sets the current record's "valor" value
 * @method RE_LOTE_RECAUDO setRELOTE()     Sets the current record's "RE_LOTE" value
 * @method RE_LOTE_RECAUDO setRERECAUDO()  Sets the current record's "RE_RECAUDO" 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_LOTE_RECAUDO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_LOTE_RECAUDO');
        $this->hasColumn('id_lote', 'string', 9, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 9,
             ));
        $this->hasColumn('id_recaudo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('valor', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 18,
             ));
    }

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

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