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

/**
 * BaseANHOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_anhos
 * @property Doctrine_Collection $RE_SALDO
 * @property Doctrine_Collection $RE_RECLASIF_BENE
 * @property Doctrine_Collection $RE_RECLASIF_BENE_2
 * @property Doctrine_Collection $CA_TASA_USURA
 * @property Doctrine_Collection $CA_IPC
 * 
 * @method integer             getIdAnhos()            Returns the current record's "id_anhos" 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 getRERECLASIFBENE2()    Returns the current record's "RE_RECLASIF_BENE_2" 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 ANHOS               setIdAnhos()            Sets the current record's "id_anhos" value
 * @method ANHOS               setRESALDO()            Sets the current record's "RE_SALDO" collection
 * @method ANHOS               setRERECLASIFBENE()     Sets the current record's "RE_RECLASIF_BENE" collection
 * @method ANHOS               setRERECLASIFBENE2()    Sets the current record's "RE_RECLASIF_BENE_2" collection
 * @method ANHOS               setCATASAUSURA()        Sets the current record's "CA_TASA_USURA" collection
 * @method ANHOS               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 BaseANHOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ANHOS');
        $this->hasColumn('id_anhos', 'integer', 4, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 4,
             ));
    }

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

        $this->hasMany('RE_RECLASIF_BENE', array(
             'local' => 'id_anhos',
             'foreign' => 'id_anhos_ini'));

        $this->hasMany('RE_RECLASIF_BENE as RE_RECLASIF_BENE_2', array(
             'local' => 'id_anhos',
             'foreign' => 'id_anhos_fin'));

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

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