<?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 string $abrev_fac
 * @property Doctrine_Collection $IN_COTIZACION
 * @property Doctrine_Collection $CA_TRM
 * @property Doctrine_Collection $CA_DEBITO
 * @property Doctrine_Collection $CA_CREDITO_DETALLE
 * 
 * @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 string              getAbrevFac()           Returns the current record's "abrev_fac" value
 * @method Doctrine_Collection getINCOTIZACION()       Returns the current record's "IN_COTIZACION" collection
 * @method Doctrine_Collection getCATRM()              Returns the current record's "CA_TRM" collection
 * @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 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          setAbrevFac()           Sets the current record's "abrev_fac" value
 * @method CA_TIP_MON          setINCOTIZACION()       Sets the current record's "IN_COTIZACION" collection
 * @method CA_TIP_MON          setCATRM()              Sets the current record's "CA_TRM" collection
 * @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
 * 
 * @package    controlComisiones
 * @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(
             'notnull' => false,
             '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,
             ));
        $this->hasColumn('abrev_fac', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

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

        $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'));
    }
}