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

/**
 * BaseCOM_DETA_REEMBOLSO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_deta_reembolso
 * @property integer $id_reembolso
 * @property integer $id_rubro
 * @property integer $id_obj_gasto
 * @property decimal $valor_reembolso
 * @property COM_REEMBOLSO $COM_REEMBOLSO
 * @property OBJETOS_GASTO $OBJETOS_GASTO
 * @property PR_CODIF_PRESUP $PR_CODIF_PRESUP
 * 
 * @method integer            getIdDetaReembolso()   Returns the current record's "id_deta_reembolso" value
 * @method integer            getIdReembolso()       Returns the current record's "id_reembolso" value
 * @method integer            getIdRubro()           Returns the current record's "id_rubro" value
 * @method integer            getIdObjGasto()        Returns the current record's "id_obj_gasto" value
 * @method decimal            getValorReembolso()    Returns the current record's "valor_reembolso" value
 * @method COM_REEMBOLSO      getCOMREEMBOLSO()      Returns the current record's "COM_REEMBOLSO" value
 * @method OBJETOS_GASTO      getOBJETOSGASTO()      Returns the current record's "OBJETOS_GASTO" value
 * @method PR_CODIF_PRESUP    getPRCODIFPRESUP()     Returns the current record's "PR_CODIF_PRESUP" value
 * @method COM_DETA_REEMBOLSO setIdDetaReembolso()   Sets the current record's "id_deta_reembolso" value
 * @method COM_DETA_REEMBOLSO setIdReembolso()       Sets the current record's "id_reembolso" value
 * @method COM_DETA_REEMBOLSO setIdRubro()           Sets the current record's "id_rubro" value
 * @method COM_DETA_REEMBOLSO setIdObjGasto()        Sets the current record's "id_obj_gasto" value
 * @method COM_DETA_REEMBOLSO setValorReembolso()    Sets the current record's "valor_reembolso" value
 * @method COM_DETA_REEMBOLSO setCOMREEMBOLSO()      Sets the current record's "COM_REEMBOLSO" value
 * @method COM_DETA_REEMBOLSO setOBJETOSGASTO()      Sets the current record's "OBJETOS_GASTO" value
 * @method COM_DETA_REEMBOLSO setPRCODIFPRESUP()     Sets the current record's "PR_CODIF_PRESUP" 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_DETA_REEMBOLSO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_DETA_REEMBOLSO');
        $this->hasColumn('id_deta_reembolso', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_reembolso', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_rubro', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_obj_gasto', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_reembolso', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_pago_egreso', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        
    }

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

        $this->hasOne('OBJETOS_GASTO', array(
             'local' => 'id_obj_gasto',
             'foreign' => 'id'));

        $this->hasOne('PR_CODIF_PRESUP', array(
             'local' => 'id_rubro',
             'foreign' => 'id_rubro'));
        
        $this->hasOne('COM_PAGO_EGRESO', array(
             'local' => 'id_pago_egreso',
             'foreign' => 'id_pago_egreso'));

        
    }
}