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

/**
 * BaseRE_TIPO_BENEFICIARIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_beneficiario
 * @property string $descripcion
 * @property string $abreviatura
 * @property Doctrine_Collection $RE_OBL_DETALLE
 * @property Doctrine_Collection $RE_CLA_DESPAGO
 * 
 * @method integer              getIdTipoBeneficiario()   Returns the current record's "id_tipo_beneficiario" value
 * @method string               getDescripcion()          Returns the current record's "descripcion" value
 * @method string               getAbreviatura()          Returns the current record's "abreviatura" value
 * @method Doctrine_Collection  getREOBLDETALLE()         Returns the current record's "RE_OBL_DETALLE" collection
 * @method Doctrine_Collection  getRECLADESPAGO()         Returns the current record's "RE_CLA_DESPAGO" collection
 * @method RE_TIPO_BENEFICIARIO setIdTipoBeneficiario()   Sets the current record's "id_tipo_beneficiario" value
 * @method RE_TIPO_BENEFICIARIO setDescripcion()          Sets the current record's "descripcion" value
 * @method RE_TIPO_BENEFICIARIO setAbreviatura()          Sets the current record's "abreviatura" value
 * @method RE_TIPO_BENEFICIARIO setREOBLDETALLE()         Sets the current record's "RE_OBL_DETALLE" collection
 * @method RE_TIPO_BENEFICIARIO setRECLADESPAGO()         Sets the current record's "RE_CLA_DESPAGO" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRE_TIPO_BENEFICIARIO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_TIPO_BENEFICIARIO');
        $this->hasColumn('id_tipo_beneficiario', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 128, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('abreviatura', 'string', 16, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 16,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('RE_OBL_DETALLE', array(
             'local' => 'id_tipo_beneficiario',
             'foreign' => 'id_tipo_beneficiario'));

        $this->hasMany('RE_CLA_DESPAGO', array(
             'local' => 'id_tipo_beneficiario',
             'foreign' => 'id_tipo_beneficiario'));
    }
}