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

/**
 * BaseCOM_DETA_REINTEGRO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_deta_reintegro
 * @property integer $id_reintegro
 * @property integer $id_proyecto
 * @property integer $id_rubro
 * @property integer $id_obj_gasto
 * @property decimal $valor_reintegro
 * @property COM_REINTEGRO $COM_REINTEGRO
 * @property OBJETOS_GASTO $OBJETOS_GASTO
 * @property PROYECTOS $PROYECTOS
 * @property PR_CODIF_PRESUP $PR_CODIF_PRESUP
 * 
 * @method integer            getIdDetaReintegro()   Returns the current record's "id_deta_reintegro" value
 * @method integer            getIdReintegro()       Returns the current record's "id_reintegro" value
 * @method integer            getIdProyecto()        Returns the current record's "id_proyecto" 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            getValorReintegro()    Returns the current record's "valor_reintegro" value
 * @method COM_REINTEGRO      getCOMREINTEGRO()      Returns the current record's "COM_REINTEGRO" value
 * @method OBJETOS_GASTO      getOBJETOSGASTO()      Returns the current record's "OBJETOS_GASTO" value
 * @method PROYECTOS          getPROYECTOS()         Returns the current record's "PROYECTOS" value
 * @method PR_CODIF_PRESUP    getPRCODIFPRESUP()     Returns the current record's "PR_CODIF_PRESUP" value
 * @method COM_DETA_REINTEGRO setIdDetaReintegro()   Sets the current record's "id_deta_reintegro" value
 * @method COM_DETA_REINTEGRO setIdReintegro()       Sets the current record's "id_reintegro" value
 * @method COM_DETA_REINTEGRO setIdProyecto()        Sets the current record's "id_proyecto" value
 * @method COM_DETA_REINTEGRO setIdRubro()           Sets the current record's "id_rubro" value
 * @method COM_DETA_REINTEGRO setIdObjGasto()        Sets the current record's "id_obj_gasto" value
 * @method COM_DETA_REINTEGRO setValorReintegro()    Sets the current record's "valor_reintegro" value
 * @method COM_DETA_REINTEGRO setCOMREINTEGRO()      Sets the current record's "COM_REINTEGRO" value
 * @method COM_DETA_REINTEGRO setOBJETOSGASTO()      Sets the current record's "OBJETOS_GASTO" value
 * @method COM_DETA_REINTEGRO setPROYECTOS()         Sets the current record's "PROYECTOS" value
 * @method COM_DETA_REINTEGRO 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_REINTEGRO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_DETA_REINTEGRO');
        $this->hasColumn('id_deta_reintegro', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_reintegro', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_proyecto', '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_reintegro', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
    }

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

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

        $this->hasOne('PROYECTOS', array(
             'local' => 'id_proyecto',
             'foreign' => 'id'));

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