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

/**
 * BaseRE_OBL_DETALLE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_obligacion
 * @property integer $id_distribucion
 * @property integer $secuencia
 * @property integer $id_tipo_beneficiario
 * @property decimal $valor_bruto
 * @property decimal $valor_dto
 * @property decimal $valor_gravamen
 * @property decimal $valor_girar
 * @property integer $id_descto
 * @property integer $id_mae_ter
 * @property integer $pago
 * @property integer $id_des_pago
 * @property timestamp $fecha_aplica
 * @property integer $resul_giro
 * @property string $observaciones
 * @property integer $estado
 * @property timestamp $fecha_anu
 * @property string $motivo_anu
 * @property integer $id_usuario_anu
 * @property INTERCEROS $INTERCEROS
 * @property RE_DESCUENTOS $RE_DESCUENTOS
 * @property RE_DES_PAGO $RE_DES_PAGO
 * @property RE_OBLIGACION $RE_OBLIGACION
 * @property RE_OBLIGACION $RE_OBLIGACION_5
 * @property RE_OBLIGACION $RE_OBLIGACION_6
 * @property RE_OBLIGACION $RE_OBLIGACION_7
 * @property RE_TIPO_BENEFICIARIO $RE_TIPO_BENEFICIARIO
 * @property Doctrine_Collection $RE_PAGO_HIST
 * @property Doctrine_Collection $RE_PAGO_HIST_2
 * @property Doctrine_Collection $RE_PAGO_HIST_3
 * @property Doctrine_Collection $RE_PAGO_HIST_4
 * @property Doctrine_Collection $RE_PAGO_HIST_5
 * @property Doctrine_Collection $RE_PAGO_HIST_6
 * @property Doctrine_Collection $RE_PAGO_HIST_7
 * @property Doctrine_Collection $RE_PAGO_HIST_8
 * @property Doctrine_Collection $RE_PAGO_HIST_9
 * 
 * @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 integer              getIdTipoBeneficiario()   Returns the current record's "id_tipo_beneficiario" value
 * @method decimal              getValorBruto()           Returns the current record's "valor_bruto" value
 * @method decimal              getValorDto()             Returns the current record's "valor_dto" value
 * @method decimal              getValorGravamen()        Returns the current record's "valor_gravamen" value
 * @method decimal              getValorGirar()           Returns the current record's "valor_girar" value
 * @method integer              getIdDescto()             Returns the current record's "id_descto" value
 * @method integer              getIdMaeTer()             Returns the current record's "id_mae_ter" value
 * @method integer              getPago()                 Returns the current record's "pago" value
 * @method integer              getIdDesPago()            Returns the current record's "id_des_pago" value
 * @method timestamp            getFechaAplica()          Returns the current record's "fecha_aplica" value
 * @method integer              getResulGiro()            Returns the current record's "resul_giro" value
 * @method string               getObservaciones()        Returns the current record's "observaciones" 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 integer              getIdUsuarioAnu()         Returns the current record's "id_usuario_anu" value
 * @method INTERCEROS           getINTERCEROS()           Returns the current record's "INTERCEROS" value
 * @method RE_DESCUENTOS        getREDESCUENTOS()         Returns the current record's "RE_DESCUENTOS" value
 * @method RE_DES_PAGO          getREDESPAGO()            Returns the current record's "RE_DES_PAGO" value
 * @method RE_OBLIGACION        getREOBLIGACION()         Returns the current record's "RE_OBLIGACION" value
 * @method RE_OBLIGACION        getREOBLIGACION5()        Returns the current record's "RE_OBLIGACION_5" value
 * @method RE_OBLIGACION        getREOBLIGACION6()        Returns the current record's "RE_OBLIGACION_6" value
 * @method RE_OBLIGACION        getREOBLIGACION7()        Returns the current record's "RE_OBLIGACION_7" value
 * @method RE_TIPO_BENEFICIARIO getRETIPOBENEFICIARIO()   Returns the current record's "RE_TIPO_BENEFICIARIO" value
 * @method Doctrine_Collection  getREPAGOHIST()           Returns the current record's "RE_PAGO_HIST" collection
 * @method Doctrine_Collection  getREPAGOHIST2()          Returns the current record's "RE_PAGO_HIST_2" collection
 * @method Doctrine_Collection  getREPAGOHIST3()          Returns the current record's "RE_PAGO_HIST_3" collection
 * @method Doctrine_Collection  getREPAGOHIST4()          Returns the current record's "RE_PAGO_HIST_4" collection
 * @method Doctrine_Collection  getREPAGOHIST5()          Returns the current record's "RE_PAGO_HIST_5" collection
 * @method Doctrine_Collection  getREPAGOHIST6()          Returns the current record's "RE_PAGO_HIST_6" collection
 * @method Doctrine_Collection  getREPAGOHIST7()          Returns the current record's "RE_PAGO_HIST_7" collection
 * @method Doctrine_Collection  getREPAGOHIST8()          Returns the current record's "RE_PAGO_HIST_8" collection
 * @method Doctrine_Collection  getREPAGOHIST9()          Returns the current record's "RE_PAGO_HIST_9" collection
 * @method RE_OBL_DETALLE       setIdObligacion()         Sets the current record's "id_obligacion" value
 * @method RE_OBL_DETALLE       setIdDistribucion()       Sets the current record's "id_distribucion" value
 * @method RE_OBL_DETALLE       setSecuencia()            Sets the current record's "secuencia" value
 * @method RE_OBL_DETALLE       setIdTipoBeneficiario()   Sets the current record's "id_tipo_beneficiario" value
 * @method RE_OBL_DETALLE       setValorBruto()           Sets the current record's "valor_bruto" value
 * @method RE_OBL_DETALLE       setValorDto()             Sets the current record's "valor_dto" value
 * @method RE_OBL_DETALLE       setValorGravamen()        Sets the current record's "valor_gravamen" value
 * @method RE_OBL_DETALLE       setValorGirar()           Sets the current record's "valor_girar" value
 * @method RE_OBL_DETALLE       setIdDescto()             Sets the current record's "id_descto" value
 * @method RE_OBL_DETALLE       setIdMaeTer()             Sets the current record's "id_mae_ter" value
 * @method RE_OBL_DETALLE       setPago()                 Sets the current record's "pago" value
 * @method RE_OBL_DETALLE       setIdDesPago()            Sets the current record's "id_des_pago" value
 * @method RE_OBL_DETALLE       setFechaAplica()          Sets the current record's "fecha_aplica" value
 * @method RE_OBL_DETALLE       setResulGiro()            Sets the current record's "resul_giro" value
 * @method RE_OBL_DETALLE       setObservaciones()        Sets the current record's "observaciones" value
 * @method RE_OBL_DETALLE       setEstado()               Sets the current record's "estado" value
 * @method RE_OBL_DETALLE       setFechaAnu()             Sets the current record's "fecha_anu" value
 * @method RE_OBL_DETALLE       setMotivoAnu()            Sets the current record's "motivo_anu" value
 * @method RE_OBL_DETALLE       setIdUsuarioAnu()         Sets the current record's "id_usuario_anu" value
 * @method RE_OBL_DETALLE       setINTERCEROS()           Sets the current record's "INTERCEROS" value
 * @method RE_OBL_DETALLE       setREDESCUENTOS()         Sets the current record's "RE_DESCUENTOS" value
 * @method RE_OBL_DETALLE       setREDESPAGO()            Sets the current record's "RE_DES_PAGO" value
 * @method RE_OBL_DETALLE       setREOBLIGACION()         Sets the current record's "RE_OBLIGACION" value
 * @method RE_OBL_DETALLE       setREOBLIGACION5()        Sets the current record's "RE_OBLIGACION_5" value
 * @method RE_OBL_DETALLE       setREOBLIGACION6()        Sets the current record's "RE_OBLIGACION_6" value
 * @method RE_OBL_DETALLE       setREOBLIGACION7()        Sets the current record's "RE_OBLIGACION_7" value
 * @method RE_OBL_DETALLE       setRETIPOBENEFICIARIO()   Sets the current record's "RE_TIPO_BENEFICIARIO" value
 * @method RE_OBL_DETALLE       setREPAGOHIST()           Sets the current record's "RE_PAGO_HIST" collection
 * @method RE_OBL_DETALLE       setREPAGOHIST2()          Sets the current record's "RE_PAGO_HIST_2" collection
 * @method RE_OBL_DETALLE       setREPAGOHIST3()          Sets the current record's "RE_PAGO_HIST_3" collection
 * @method RE_OBL_DETALLE       setREPAGOHIST4()          Sets the current record's "RE_PAGO_HIST_4" collection
 * @method RE_OBL_DETALLE       setREPAGOHIST5()          Sets the current record's "RE_PAGO_HIST_5" collection
 * @method RE_OBL_DETALLE       setREPAGOHIST6()          Sets the current record's "RE_PAGO_HIST_6" collection
 * @method RE_OBL_DETALLE       setREPAGOHIST7()          Sets the current record's "RE_PAGO_HIST_7" collection
 * @method RE_OBL_DETALLE       setREPAGOHIST8()          Sets the current record's "RE_PAGO_HIST_8" collection
 * @method RE_OBL_DETALLE       setREPAGOHIST9()          Sets the current record's "RE_PAGO_HIST_9" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_OBL_DETALLE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_OBL_DETALLE');
        $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(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('secuencia', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_beneficiario', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_bruto', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_dto', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_gravamen', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_girar', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('id_descto', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('pago', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_des_pago', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_aplica', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('resul_giro', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => 'NULL',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('observaciones', 'string', 300, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_anu', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_anu', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('id_usuario_anu', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('RE_DESCUENTOS', array(
             'local' => 'id_descto',
             'foreign' => 'id_descto'));

        $this->hasOne('RE_DES_PAGO', array(
             'local' => 'id_des_pago',
             'foreign' => 'id_des_pago'));

        $this->hasOne('RE_OBLIGACION', array(
             'local' => 'id_obligacion',
             'foreign' => 'id_obligacion'));

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

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

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

        $this->hasOne('RE_TIPO_BENEFICIARIO', array(
             'local' => 'id_tipo_beneficiario',
             'foreign' => 'id_tipo_beneficiario'));

        $this->hasMany('RE_PAGO_HIST', array(
             'local' => 'id_obligacion',
             'foreign' => 'id_obligacion'));

        $this->hasMany('RE_PAGO_HIST as RE_PAGO_HIST_2', array(
             'local' => 'id_obligacion',
             'foreign' => 'id_distribucion'));

        $this->hasMany('RE_PAGO_HIST as RE_PAGO_HIST_3', array(
             'local' => 'id_obligacion',
             'foreign' => 'secuencia'));

        $this->hasMany('RE_PAGO_HIST as RE_PAGO_HIST_4', array(
             'local' => 'id_distribucion',
             'foreign' => 'id_obligacion'));

        $this->hasMany('RE_PAGO_HIST as RE_PAGO_HIST_5', array(
             'local' => 'id_distribucion',
             'foreign' => 'id_distribucion'));

        $this->hasMany('RE_PAGO_HIST as RE_PAGO_HIST_6', array(
             'local' => 'id_distribucion',
             'foreign' => 'secuencia'));

        $this->hasMany('RE_PAGO_HIST as RE_PAGO_HIST_7', array(
             'local' => 'secuencia',
             'foreign' => 'id_obligacion'));

        $this->hasMany('RE_PAGO_HIST as RE_PAGO_HIST_8', array(
             'local' => 'secuencia',
             'foreign' => 'id_distribucion'));

        $this->hasMany('RE_PAGO_HIST as RE_PAGO_HIST_9', array(
             'local' => 'secuencia',
             'foreign' => 'secuencia'));
    }
}