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

/**
 * BaseMESES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_meses
 * @property string $descripcion
 * @property Doctrine_Collection $RE_SALDO
 * @property Doctrine_Collection $RE_RECLASIF_BENE
 * @property Doctrine_Collection $RE_RECLASIF_BENE_4
 * @property Doctrine_Collection $IN_DEPRECIACION
 * @property Doctrine_Collection $CA_TASA_USURA
 * @property Doctrine_Collection $CA_IPC
 * 
 * @method integer             getIdMeses()            Returns the current record's "id_meses" value
 * @method string              getDescripcion()        Returns the current record's "descripcion" value
 * @method Doctrine_Collection getRESALDO()            Returns the current record's "RE_SALDO" collection
 * @method Doctrine_Collection getRERECLASIFBENE()     Returns the current record's "RE_RECLASIF_BENE" collection
 * @method Doctrine_Collection getRERECLASIFBENE4()    Returns the current record's "RE_RECLASIF_BENE_4" collection
 * @method Doctrine_Collection getINDEPRECIACION()     Returns the current record's "IN_DEPRECIACION" collection
 * @method Doctrine_Collection getCATASAUSURA()        Returns the current record's "CA_TASA_USURA" collection
 * @method Doctrine_Collection getCAIPC()              Returns the current record's "CA_IPC" collection
 * @method MESES               setIdMeses()            Sets the current record's "id_meses" value
 * @method MESES               setDescripcion()        Sets the current record's "descripcion" value
 * @method MESES               setRESALDO()            Sets the current record's "RE_SALDO" collection
 * @method MESES               setRERECLASIFBENE()     Sets the current record's "RE_RECLASIF_BENE" collection
 * @method MESES               setRERECLASIFBENE4()    Sets the current record's "RE_RECLASIF_BENE_4" collection
 * @method MESES               setINDEPRECIACION()     Sets the current record's "IN_DEPRECIACION" collection
 * @method MESES               setCATASAUSURA()        Sets the current record's "CA_TASA_USURA" collection
 * @method MESES               setCAIPC()              Sets the current record's "CA_IPC" 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 BaseMESES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('MESES');
        $this->hasColumn('id_meses', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('RE_RECLASIF_BENE', array(
             'local' => 'id_meses',
             'foreign' => 'id_meses_ini'));

        $this->hasMany('RE_RECLASIF_BENE as RE_RECLASIF_BENE_4', array(
             'local' => 'id_meses',
             'foreign' => 'id_meses_fin'));

        $this->hasMany('IN_DEPRECIACION', array(
             'local' => 'id_meses',
             'foreign' => 'id_meses'));

        $this->hasMany('CA_TASA_USURA', array(
             'local' => 'id_meses',
             'foreign' => 'id_meses'));

        $this->hasMany('CA_IPC', array(
             'local' => 'id_meses',
             'foreign' => 'id_meses'));
    }
}