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

/**
 * BaseRE_RECAUDO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_recaudo
 * @property integer $id_ts_mov_banc
 * @property integer $id_bn
 * @property integer $id_cb
 * @property integer $id_ts_mb
 * @property integer $id_ts_td
 * @property string $numero_doc
 * @property timestamp $fecha
 * @property timestamp $fecha_proc
 * @property integer $id_mae_ter
 * @property integer $id_mineral
 * @property string $placa_rmn
 * @property string $observaciones
 * @property decimal $valor_recaudo
 * @property decimal $saldo
 * @property integer $estado
 * @property timestamp $fecha_anu
 * @property string $motivo_anu
 * @property INTERCEROS $INTERCEROS
 * @property RE_MINERAL $RE_MINERAL
 * @property TS_BN $TS_BN
 * @property TS_CB $TS_CB
 * @property TS_MB $TS_MB
 * @property TS_TD $TS_TD
 * @property Doctrine_Collection $RE_SALDO
 * @property Doctrine_Collection $RE_LOTE_RECAUDO
 * @property Doctrine_Collection $RE_NOV_RECAUDO
 * 
 * @method integer             getIdRecaudo()       Returns the current record's "id_recaudo" value
 * @method integer             getIdTsMovBanc()     Returns the current record's "id_ts_mov_banc" value
 * @method integer             getIdBn()            Returns the current record's "id_bn" value
 * @method integer             getIdCb()            Returns the current record's "id_cb" value
 * @method integer             getIdTsMb()          Returns the current record's "id_ts_mb" value
 * @method integer             getIdTsTd()          Returns the current record's "id_ts_td" value
 * @method string              getNumeroDoc()       Returns the current record's "numero_doc" value
 * @method timestamp           getFecha()           Returns the current record's "fecha" value
 * @method timestamp           getFechaProc()       Returns the current record's "fecha_proc" value
 * @method integer             getIdMaeTer()        Returns the current record's "id_mae_ter" value
 * @method integer             getIdMineral()       Returns the current record's "id_mineral" value
 * @method string              getPlacaRmn()        Returns the current record's "placa_rmn" value
 * @method string              getObservaciones()   Returns the current record's "observaciones" value
 * @method decimal             getValorRecaudo()    Returns the current record's "valor_recaudo" value
 * @method decimal             getSaldo()           Returns the current record's "saldo" value
 * @method integer             getEstado()          Returns the current record's "estado" value
 * @method timestamp           getFechaAnu()        Returns the current record's "fecha_anu" value
 * @method string              getMotivoAnu()       Returns the current record's "motivo_anu" value
 * @method INTERCEROS          getINTERCEROS()      Returns the current record's "INTERCEROS" value
 * @method RE_MINERAL          getREMINERAL()       Returns the current record's "RE_MINERAL" value
 * @method TS_BN               getTSBN()            Returns the current record's "TS_BN" value
 * @method TS_CB               getTSCB()            Returns the current record's "TS_CB" value
 * @method TS_MB               getTSMB()            Returns the current record's "TS_MB" value
 * @method TS_TD               getTSTD()            Returns the current record's "TS_TD" value
 * @method Doctrine_Collection getRESALDO()         Returns the current record's "RE_SALDO" collection
 * @method Doctrine_Collection getRELOTERECAUDO()   Returns the current record's "RE_LOTE_RECAUDO" collection
 * @method Doctrine_Collection getRENOVRECAUDO()    Returns the current record's "RE_NOV_RECAUDO" collection
 * @method RE_RECAUDO          setIdRecaudo()       Sets the current record's "id_recaudo" value
 * @method RE_RECAUDO          setIdTsMovBanc()     Sets the current record's "id_ts_mov_banc" value
 * @method RE_RECAUDO          setIdBn()            Sets the current record's "id_bn" value
 * @method RE_RECAUDO          setIdCb()            Sets the current record's "id_cb" value
 * @method RE_RECAUDO          setIdTsMb()          Sets the current record's "id_ts_mb" value
 * @method RE_RECAUDO          setIdTsTd()          Sets the current record's "id_ts_td" value
 * @method RE_RECAUDO          setNumeroDoc()       Sets the current record's "numero_doc" value
 * @method RE_RECAUDO          setFecha()           Sets the current record's "fecha" value
 * @method RE_RECAUDO          setFechaProc()       Sets the current record's "fecha_proc" value
 * @method RE_RECAUDO          setIdMaeTer()        Sets the current record's "id_mae_ter" value
 * @method RE_RECAUDO          setIdMineral()       Sets the current record's "id_mineral" value
 * @method RE_RECAUDO          setPlacaRmn()        Sets the current record's "placa_rmn" value
 * @method RE_RECAUDO          setObservaciones()   Sets the current record's "observaciones" value
 * @method RE_RECAUDO          setValorRecaudo()    Sets the current record's "valor_recaudo" value
 * @method RE_RECAUDO          setSaldo()           Sets the current record's "saldo" value
 * @method RE_RECAUDO          setEstado()          Sets the current record's "estado" value
 * @method RE_RECAUDO          setFechaAnu()        Sets the current record's "fecha_anu" value
 * @method RE_RECAUDO          setMotivoAnu()       Sets the current record's "motivo_anu" value
 * @method RE_RECAUDO          setINTERCEROS()      Sets the current record's "INTERCEROS" value
 * @method RE_RECAUDO          setREMINERAL()       Sets the current record's "RE_MINERAL" value
 * @method RE_RECAUDO          setTSBN()            Sets the current record's "TS_BN" value
 * @method RE_RECAUDO          setTSCB()            Sets the current record's "TS_CB" value
 * @method RE_RECAUDO          setTSMB()            Sets the current record's "TS_MB" value
 * @method RE_RECAUDO          setTSTD()            Sets the current record's "TS_TD" value
 * @method RE_RECAUDO          setRESALDO()         Sets the current record's "RE_SALDO" collection
 * @method RE_RECAUDO          setRELOTERECAUDO()   Sets the current record's "RE_LOTE_RECAUDO" collection
 * @method RE_RECAUDO          setRENOVRECAUDO()    Sets the current record's "RE_NOV_RECAUDO" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_RECAUDO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_RECAUDO');
        $this->hasColumn('id_recaudo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_ts_mov_banc', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_bn', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cb', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ts_mb', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ts_td', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('numero_doc', 'string', 64, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 64,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_proc', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mineral', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('placa_rmn', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('observaciones', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('valor_recaudo', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('saldo', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_anu', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_anu', 'string', 128, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
    }

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

        $this->hasOne('RE_MINERAL', array(
             'local' => 'id_mineral',
             'foreign' => 'id_mineral'));

        $this->hasOne('TS_BN', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasOne('TS_CB', array(
             'local' => 'id_cb',
             'foreign' => 'id_cb'));

        $this->hasOne('TS_MB', array(
             'local' => 'id_ts_mb',
             'foreign' => 'id'));

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

        $this->hasMany('RE_SALDO', array(
             'local' => 'id_recaudo',
             'foreign' => 'id_recaudo'));

        $this->hasMany('RE_LOTE_RECAUDO', array(
             'local' => 'id_recaudo',
             'foreign' => 'id_recaudo'));

        $this->hasMany('RE_NOV_RECAUDO', array(
             'local' => 'id_recaudo',
             'foreign' => 'id_recaudo'));
    }
}