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

/**
 * BaseRE_CLA_DESPAGO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cla_despago
 * @property integer $id_tipo_beneficiario
 * @property string $descripcion
 * @property integer $aplica_suspendido
 * @property integer $estado
 * @property RE_TIPO_BENEFICIARIO $RE_TIPO_BENEFICIARIO
 * @property Doctrine_Collection $RE_DES_PAGO
 * 
 * @method integer              getIdClaDespago()         Returns the current record's "id_cla_despago" value
 * @method integer              getIdTipoBeneficiario()   Returns the current record's "id_tipo_beneficiario" value
 * @method string               getDescripcion()          Returns the current record's "descripcion" value
 * @method integer              getAplicaSuspendido()     Returns the current record's "aplica_suspendido" value
 * @method integer              getEstado()               Returns the current record's "estado" value
 * @method RE_TIPO_BENEFICIARIO getRETIPOBENEFICIARIO()   Returns the current record's "RE_TIPO_BENEFICIARIO" value
 * @method Doctrine_Collection  getREDESPAGO()            Returns the current record's "RE_DES_PAGO" collection
 * @method RE_CLA_DESPAGO       setIdClaDespago()         Sets the current record's "id_cla_despago" value
 * @method RE_CLA_DESPAGO       setIdTipoBeneficiario()   Sets the current record's "id_tipo_beneficiario" value
 * @method RE_CLA_DESPAGO       setDescripcion()          Sets the current record's "descripcion" value
 * @method RE_CLA_DESPAGO       setAplicaSuspendido()     Sets the current record's "aplica_suspendido" value
 * @method RE_CLA_DESPAGO       setEstado()               Sets the current record's "estado" value
 * @method RE_CLA_DESPAGO       setRETIPOBENEFICIARIO()   Sets the current record's "RE_TIPO_BENEFICIARIO" value
 * @method RE_CLA_DESPAGO       setREDESPAGO()            Sets the current record's "RE_DES_PAGO" 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_CLA_DESPAGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RE_CLA_DESPAGO');
        $this->hasColumn('id_cla_despago', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_beneficiario', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('aplica_suspendido', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('RE_DES_PAGO', array(
             'local' => 'id_cla_despago',
             'foreign' => 'id_cla_despago'));
    }
}