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

/**
 * BaseCOM_REGISTRO_GASTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_registro_gasto
 * @property integer $id_pago_egreso
 * @property integer $id_anhos
 * @property integer $id_elementos_gasto
 * @property integer $id_mae_ter
 * @property string $no_documento
 * @property timestamp $fecha_gasto
 * @property decimal $vr_bruto
 * @property decimal $vr_iva
 * @property decimal $vr_retencion
 * @property decimal $vr_neto
 * @property string $observaciones
 * @property COM_PAGO_EGRESO $COM_PAGO_EGRESO
 * @property INTERCEROS $INTERCEROS
 * @property PR_ELEMENTOS_GASTO $PR_ELEMENTOS_GASTO
 * 
 * @method integer            getIdRegistroGasto()    Returns the current record's "id_registro_gasto" value
 * @method integer            getIdPagoEgreso()       Returns the current record's "id_pago_egreso" value
 * @method integer            getIdAnhos()            Returns the current record's "id_anhos" value
 * @method integer            getIdElementosGasto()   Returns the current record's "id_elementos_gasto" value
 * @method integer            getIdMaeTer()           Returns the current record's "id_mae_ter" value
 * @method string             getNoDocumento()        Returns the current record's "no_documento" value
 * @method timestamp          getFechaGasto()         Returns the current record's "fecha_gasto" value
 * @method decimal            getVrBruto()            Returns the current record's "vr_bruto" value
 * @method decimal            getVrIva()              Returns the current record's "vr_iva" value
 * @method decimal            getVrRetencion()        Returns the current record's "vr_retencion" value
 * @method decimal            getVrNeto()             Returns the current record's "vr_neto" value
 * @method string             getObservaciones()      Returns the current record's "observaciones" value
 * @method COM_PAGO_EGRESO    getCOMPAGOEGRESO()      Returns the current record's "COM_PAGO_EGRESO" value
 * @method INTERCEROS         getINTERCEROS()         Returns the current record's "INTERCEROS" value
 * @method PR_ELEMENTOS_GASTO getPRELEMENTOSGASTO()   Returns the current record's "PR_ELEMENTOS_GASTO" value
 * @method COM_REGISTRO_GASTO setIdRegistroGasto()    Sets the current record's "id_registro_gasto" value
 * @method COM_REGISTRO_GASTO setIdPagoEgreso()       Sets the current record's "id_pago_egreso" value
 * @method COM_REGISTRO_GASTO setIdAnhos()            Sets the current record's "id_anhos" value
 * @method COM_REGISTRO_GASTO setIdElementosGasto()   Sets the current record's "id_elementos_gasto" value
 * @method COM_REGISTRO_GASTO setIdMaeTer()           Sets the current record's "id_mae_ter" value
 * @method COM_REGISTRO_GASTO setNoDocumento()        Sets the current record's "no_documento" value
 * @method COM_REGISTRO_GASTO setFechaGasto()         Sets the current record's "fecha_gasto" value
 * @method COM_REGISTRO_GASTO setVrBruto()            Sets the current record's "vr_bruto" value
 * @method COM_REGISTRO_GASTO setVrIva()              Sets the current record's "vr_iva" value
 * @method COM_REGISTRO_GASTO setVrRetencion()        Sets the current record's "vr_retencion" value
 * @method COM_REGISTRO_GASTO setVrNeto()             Sets the current record's "vr_neto" value
 * @method COM_REGISTRO_GASTO setObservaciones()      Sets the current record's "observaciones" value
 * @method COM_REGISTRO_GASTO setCOMPAGOEGRESO()      Sets the current record's "COM_PAGO_EGRESO" value
 * @method COM_REGISTRO_GASTO setINTERCEROS()         Sets the current record's "INTERCEROS" value
 * @method COM_REGISTRO_GASTO setPRELEMENTOSGASTO()   Sets the current record's "PR_ELEMENTOS_GASTO" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOM_REGISTRO_GASTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_REGISTRO_GASTO');
        $this->hasColumn('id_registro_gasto', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_pago_egreso', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_elementos_gasto', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_documento', 'string', 150, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('fecha_gasto', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('vr_bruto', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vr_iva', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vr_retencion', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vr_neto', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('PR_ELEMENTOS_GASTO', array(
             'local' => 'id_elementos_gasto',
             'foreign' => 'id_elementos_gasto'));
    }
}