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

/**
 * BaseRE_PAGO_HIST
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_pago
 * @property integer $id_obligacion
 * @property integer $id_distribucion
 * @property integer $secuencia
 * @property string $lote_pago
 * @property integer $num_pago
 * @property timestamp $fecha_pago
 * @property integer $nit_ach
 * @property integer $sec_ach
 * @property string $banco
 * @property string $cuenta
 * @property string $tipcue
 * @property string $banco_pago
 * @property string $cuenta_pago
 * @property integer $estado
 * @property RE_OBL_DETALLE $RE_OBL_DETALLE
 * @property RE_OBL_DETALLE $RE_OBL_DETALLE_2
 * @property RE_OBL_DETALLE $RE_OBL_DETALLE_3
 * @property RE_OBL_DETALLE $RE_OBL_DETALLE_4
 * @property RE_OBL_DETALLE $RE_OBL_DETALLE_5
 * @property RE_OBL_DETALLE $RE_OBL_DETALLE_6
 * @property RE_OBL_DETALLE $RE_OBL_DETALLE_7
 * @property RE_OBL_DETALLE $RE_OBL_DETALLE_8
 * @property RE_OBL_DETALLE $RE_OBL_DETALLE_9
 * 
 * @method integer        getIdPago()           Returns the current record's "id_pago" value
 * @method integer        getIdObligacion()     Returns the current record's "id_obligacion" value
 * @method integer        getIdDistribucion()   Returns the current record's "id_distribucion" value
 * @method integer        getSecuencia()        Returns the current record's "secuencia" value
 * @method string         getLotePago()         Returns the current record's "lote_pago" value
 * @method integer        getNumPago()          Returns the current record's "num_pago" value
 * @method timestamp      getFechaPago()        Returns the current record's "fecha_pago" value
 * @method integer        getNitAch()           Returns the current record's "nit_ach" value
 * @method integer        getSecAch()           Returns the current record's "sec_ach" value
 * @method string         getBanco()            Returns the current record's "banco" value
 * @method string         getCuenta()           Returns the current record's "cuenta" value
 * @method string         getTipcue()           Returns the current record's "tipcue" value
 * @method string         getBancoPago()        Returns the current record's "banco_pago" value
 * @method string         getCuentaPago()       Returns the current record's "cuenta_pago" value
 * @method integer        getEstado()           Returns the current record's "estado" value
 * @method RE_OBL_DETALLE getREOBLDETALLE()     Returns the current record's "RE_OBL_DETALLE" value
 * @method RE_OBL_DETALLE getREOBLDETALLE2()    Returns the current record's "RE_OBL_DETALLE_2" value
 * @method RE_OBL_DETALLE getREOBLDETALLE3()    Returns the current record's "RE_OBL_DETALLE_3" value
 * @method RE_OBL_DETALLE getREOBLDETALLE4()    Returns the current record's "RE_OBL_DETALLE_4" value
 * @method RE_OBL_DETALLE getREOBLDETALLE5()    Returns the current record's "RE_OBL_DETALLE_5" value
 * @method RE_OBL_DETALLE getREOBLDETALLE6()    Returns the current record's "RE_OBL_DETALLE_6" value
 * @method RE_OBL_DETALLE getREOBLDETALLE7()    Returns the current record's "RE_OBL_DETALLE_7" value
 * @method RE_OBL_DETALLE getREOBLDETALLE8()    Returns the current record's "RE_OBL_DETALLE_8" value
 * @method RE_OBL_DETALLE getREOBLDETALLE9()    Returns the current record's "RE_OBL_DETALLE_9" value
 * @method RE_PAGO_HIST   setIdPago()           Sets the current record's "id_pago" value
 * @method RE_PAGO_HIST   setIdObligacion()     Sets the current record's "id_obligacion" value
 * @method RE_PAGO_HIST   setIdDistribucion()   Sets the current record's "id_distribucion" value
 * @method RE_PAGO_HIST   setSecuencia()        Sets the current record's "secuencia" value
 * @method RE_PAGO_HIST   setLotePago()         Sets the current record's "lote_pago" value
 * @method RE_PAGO_HIST   setNumPago()          Sets the current record's "num_pago" value
 * @method RE_PAGO_HIST   setFechaPago()        Sets the current record's "fecha_pago" value
 * @method RE_PAGO_HIST   setNitAch()           Sets the current record's "nit_ach" value
 * @method RE_PAGO_HIST   setSecAch()           Sets the current record's "sec_ach" value
 * @method RE_PAGO_HIST   setBanco()            Sets the current record's "banco" value
 * @method RE_PAGO_HIST   setCuenta()           Sets the current record's "cuenta" value
 * @method RE_PAGO_HIST   setTipcue()           Sets the current record's "tipcue" value
 * @method RE_PAGO_HIST   setBancoPago()        Sets the current record's "banco_pago" value
 * @method RE_PAGO_HIST   setCuentaPago()       Sets the current record's "cuenta_pago" value
 * @method RE_PAGO_HIST   setEstado()           Sets the current record's "estado" value
 * @method RE_PAGO_HIST   setREOBLDETALLE()     Sets the current record's "RE_OBL_DETALLE" value
 * @method RE_PAGO_HIST   setREOBLDETALLE2()    Sets the current record's "RE_OBL_DETALLE_2" value
 * @method RE_PAGO_HIST   setREOBLDETALLE3()    Sets the current record's "RE_OBL_DETALLE_3" value
 * @method RE_PAGO_HIST   setREOBLDETALLE4()    Sets the current record's "RE_OBL_DETALLE_4" value
 * @method RE_PAGO_HIST   setREOBLDETALLE5()    Sets the current record's "RE_OBL_DETALLE_5" value
 * @method RE_PAGO_HIST   setREOBLDETALLE6()    Sets the current record's "RE_OBL_DETALLE_6" value
 * @method RE_PAGO_HIST   setREOBLDETALLE7()    Sets the current record's "RE_OBL_DETALLE_7" value
 * @method RE_PAGO_HIST   setREOBLDETALLE8()    Sets the current record's "RE_OBL_DETALLE_8" value
 * @method RE_PAGO_HIST   setREOBLDETALLE9()    Sets the current record's "RE_OBL_DETALLE_9" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_PAGO_HIST extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_PAGO_HIST');
        $this->hasColumn('id_pago', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_obligacion', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_distribucion', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('secuencia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('lote_pago', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_pago', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_pago', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('nit_ach', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('sec_ach', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('banco', 'string', 21, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 21,
             ));
        $this->hasColumn('cuenta', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tipcue', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('banco_pago', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('cuenta_pago', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('RE_OBL_DETALLE as RE_OBL_DETALLE_2', array(
             'local' => 'id_distribucion',
             'foreign' => 'id_obligacion'));

        $this->hasOne('RE_OBL_DETALLE as RE_OBL_DETALLE_3', array(
             'local' => 'secuencia',
             'foreign' => 'id_obligacion'));

        $this->hasOne('RE_OBL_DETALLE as RE_OBL_DETALLE_4', array(
             'local' => 'id_obligacion',
             'foreign' => 'id_distribucion'));

        $this->hasOne('RE_OBL_DETALLE as RE_OBL_DETALLE_5', array(
             'local' => 'id_distribucion',
             'foreign' => 'id_distribucion'));

        $this->hasOne('RE_OBL_DETALLE as RE_OBL_DETALLE_6', array(
             'local' => 'secuencia',
             'foreign' => 'id_distribucion'));

        $this->hasOne('RE_OBL_DETALLE as RE_OBL_DETALLE_7', array(
             'local' => 'id_obligacion',
             'foreign' => 'secuencia'));

        $this->hasOne('RE_OBL_DETALLE as RE_OBL_DETALLE_8', array(
             'local' => 'id_distribucion',
             'foreign' => 'secuencia'));

        $this->hasOne('RE_OBL_DETALLE as RE_OBL_DETALLE_9', array(
             'local' => 'secuencia',
             'foreign' => 'secuencia'));
    }
}