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

/**
 * BaseCA_TRM
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_trm
 * @property integer $id_tip_mon
 * @property timestamp $fecha_trm
 * @property decimal $valor_trm
 * @property CA_TIP_MON $CA_TIP_MON
 * 
 * @method integer    getIdTrm()      Returns the current record's "id_trm" value
 * @method integer    getIdTipMon()   Returns the current record's "id_tip_mon" value
 * @method timestamp  getFechaTrm()   Returns the current record's "fecha_trm" value
 * @method decimal    getValorTrm()   Returns the current record's "valor_trm" value
 * @method CA_TIP_MON getCATIPMON()   Returns the current record's "CA_TIP_MON" value
 * @method CA_TRM     setIdTrm()      Sets the current record's "id_trm" value
 * @method CA_TRM     setIdTipMon()   Sets the current record's "id_tip_mon" value
 * @method CA_TRM     setFechaTrm()   Sets the current record's "fecha_trm" value
 * @method CA_TRM     setValorTrm()   Sets the current record's "valor_trm" value
 * @method CA_TRM     setCATIPMON()   Sets the current record's "CA_TIP_MON" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_TRM extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_TRM');
        $this->hasColumn('id_trm', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tip_mon', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_trm', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor_trm', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
    }

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