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

/**
 * BaseCOM_TIPO_DESTINO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_destino
 * @property integer $descripcion
 * @property Doctrine_Collection $COM_COMISION
 * 
 * @method integer             getIdTipoDestino()   Returns the current record's "id_tipo_destino" value
 * @method integer             getDescripcion()     Returns the current record's "descripcion" value
 * @method Doctrine_Collection getCOMCOMISION()     Returns the current record's "COM_COMISION" collection
 * @method COM_TIPO_DESTINO    setIdTipoDestino()   Sets the current record's "id_tipo_destino" value
 * @method COM_TIPO_DESTINO    setDescripcion()     Sets the current record's "descripcion" value
 * @method COM_TIPO_DESTINO    setCOMCOMISION()     Sets the current record's "COM_COMISION" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOM_TIPO_DESTINO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_TIPO_DESTINO');
        $this->hasColumn('id_tipo_destino', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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