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

/**
 * BaseCA_TASA_USURA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tasa_usura
 * @property integer $id_anhos
 * @property integer $id_meses
 * @property decimal $valor
 * @property ANHOS $ANHOS
 * @property MESES $MESES
 * 
 * @method integer       getIdTasaUsura()   Returns the current record's "id_tasa_usura" value
 * @method integer       getIdAnhos()       Returns the current record's "id_anhos" value
 * @method integer       getIdMeses()       Returns the current record's "id_meses" value
 * @method decimal       getValor()         Returns the current record's "valor" value
 * @method ANHOS         getANHOS()         Returns the current record's "ANHOS" value
 * @method MESES         getMESES()         Returns the current record's "MESES" value
 * @method CA_TASA_USURA setIdTasaUsura()   Sets the current record's "id_tasa_usura" value
 * @method CA_TASA_USURA setIdAnhos()       Sets the current record's "id_anhos" value
 * @method CA_TASA_USURA setIdMeses()       Sets the current record's "id_meses" value
 * @method CA_TASA_USURA setValor()         Sets the current record's "valor" value
 * @method CA_TASA_USURA setANHOS()         Sets the current record's "ANHOS" value
 * @method CA_TASA_USURA setMESES()         Sets the current record's "MESES" 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 BaseCA_TASA_USURA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_TASA_USURA');
        $this->hasColumn('id_tasa_usura', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_meses', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('MESES', array(
             'local' => 'id_meses',
             'foreign' => 'id_meses'));
    }
}