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

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