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

/**
 * BasePR_DETA_REIN
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_reintegro
 * @property integer $id_deta_rein
 * @property integer $id_cpo
 * @property integer $id_asig
 * @property integer $id_obj_gasto
 * @property integer $valor
 * @property OBJETOS_GASTO $OBJETOS_GASTO
 * @property PROYECTOS $PROYECTOS
 * @property PR_ASIG_PRESUP $PR_ASIG_PRESUP
 * @property PR_REINTEGRO $PR_REINTEGRO
 * 
 * @method integer        getIdReintegro()    Returns the current record's "id_reintegro" value
 * @method integer        getIdDetaRein()     Returns the current record's "id_deta_rein" value
 * @method integer        getIdCpo()          Returns the current record's "id_cpo" value
 * @method integer        getIdAsig()         Returns the current record's "id_asig" value
 * @method integer        getIdObjGasto()     Returns the current record's "id_obj_gasto" value
 * @method integer        getValor()          Returns the current record's "valor" 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_ASIG_PRESUP getPRASIGPRESUP()   Returns the current record's "PR_ASIG_PRESUP" value
 * @method PR_REINTEGRO   getPRREINTEGRO()    Returns the current record's "PR_REINTEGRO" value
 * @method PR_DETA_REIN   setIdReintegro()    Sets the current record's "id_reintegro" value
 * @method PR_DETA_REIN   setIdDetaRein()     Sets the current record's "id_deta_rein" value
 * @method PR_DETA_REIN   setIdCpo()          Sets the current record's "id_cpo" value
 * @method PR_DETA_REIN   setIdAsig()         Sets the current record's "id_asig" value
 * @method PR_DETA_REIN   setIdObjGasto()     Sets the current record's "id_obj_gasto" value
 * @method PR_DETA_REIN   setValor()          Sets the current record's "valor" value
 * @method PR_DETA_REIN   setOBJETOSGASTO()   Sets the current record's "OBJETOS_GASTO" value
 * @method PR_DETA_REIN   setPROYECTOS()      Sets the current record's "PROYECTOS" value
 * @method PR_DETA_REIN   setPRASIGPRESUP()   Sets the current record's "PR_ASIG_PRESUP" value
 * @method PR_DETA_REIN   setPRREINTEGRO()    Sets the current record's "PR_REINTEGRO" 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 BasePR_DETA_REIN extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_DETA_REIN');
        $this->hasColumn('id_reintegro', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_deta_rein', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_cpo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_asig', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_obj_gasto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

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

        $this->hasOne('PR_ASIG_PRESUP', array(
             'local' => 'id_asig',
             'foreign' => 'id'));

        $this->hasOne('PR_REINTEGRO', array(
             'local' => 'id_reintegro',
             'foreign' => 'id_reintegro'));
    }
}