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

/**
 * BaseCA_TIP_MON
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tip_mon
 * @property string $codigo
 * @property string $descripcion
 * @property string $simbolo
 * @property integer $local
 * @property Doctrine_Collection $CA_DEBITO
 * @property Doctrine_Collection $CA_CREDITO_DETALLE
 * @property Doctrine_Collection $CA_TRM
 * 
 * @method integer             getIdTipMon()           Returns the current record's "id_tip_mon" value
 * @method string              getCodigo()             Returns the current record's "codigo" value
 * @method string              getDescripcion()        Returns the current record's "descripcion" value
 * @method string              getSimbolo()            Returns the current record's "simbolo" value
 * @method integer             getLocal()              Returns the current record's "local" value
 * @method Doctrine_Collection getCADEBITO()           Returns the current record's "CA_DEBITO" collection
 * @method Doctrine_Collection getCACREDITODETALLE()   Returns the current record's "CA_CREDITO_DETALLE" collection
 * @method Doctrine_Collection getCATRM()              Returns the current record's "CA_TRM" collection
 * @method CA_TIP_MON          setIdTipMon()           Sets the current record's "id_tip_mon" value
 * @method CA_TIP_MON          setCodigo()             Sets the current record's "codigo" value
 * @method CA_TIP_MON          setDescripcion()        Sets the current record's "descripcion" value
 * @method CA_TIP_MON          setSimbolo()            Sets the current record's "simbolo" value
 * @method CA_TIP_MON          setLocal()              Sets the current record's "local" value
 * @method CA_TIP_MON          setCADEBITO()           Sets the current record's "CA_DEBITO" collection
 * @method CA_TIP_MON          setCACREDITODETALLE()   Sets the current record's "CA_CREDITO_DETALLE" collection
 * @method CA_TIP_MON          setCATRM()              Sets the current record's "CA_TRM" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_TIP_MON extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_TIP_MON');
        $this->hasColumn('id_tip_mon', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 45, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 45,
             ));
        $this->hasColumn('descripcion', 'string', 45, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 45,
             ));
        $this->hasColumn('simbolo', 'string', 45, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 45,
             ));
        $this->hasColumn('local', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasMany('CA_CREDITO_DETALLE', array(
             'local' => 'id_tip_mon',
             'foreign' => 'id_tip_mon'));

        $this->hasMany('CA_TRM', array(
             'local' => 'id_tip_mon',
             'foreign' => 'id_tip_mon'));
    }
}