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

/**
 * BaseCA_IPC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * 
 */
abstract class BaseCA_IPC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_IPC');
        $this->hasColumn('id_ipc', '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,
             ));
        
        $this->hasColumn('valor_ipc', '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'));
    }
}
