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

/**
 * BaseCA_IPC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * 
 */
abstract class BaseCA_TASA_USURA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_TASA_USURA');
        $this->hasColumn('id_tasa_usura', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_anhos', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_meses', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        
    }

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