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

/**
 * BaseTIPOS_COMISION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $tipcomi
 * @property string $descomi
 * @property string $observ
 * @property string $dcomi
 * @property string $viaticos
 * @property string $manutencion
 * @property string $taxis
 * @property string $objetos
 * @property string $destinos
 * @property string $fecha_ini
 * @property string $fecha_ant
 * @property string $cruce
 * @property Doctrine_Collection $COMISIONES
 * 
 * @method string              getTipcomi()     Returns the current record's "tipcomi" value
 * @method string              getDescomi()     Returns the current record's "descomi" value
 * @method string              getObserv()      Returns the current record's "observ" value
 * @method string              getDcomi()       Returns the current record's "dcomi" value
 * @method string              getViaticos()    Returns the current record's "viaticos" value
 * @method string              getManutencion() Returns the current record's "manutencion" value
 * @method string              getTaxis()       Returns the current record's "taxis" value
 * @method string              getObjetos()     Returns the current record's "objetos" value
 * @method string              getDestinos()    Returns the current record's "destinos" value
 * @method string              getFechaIni()    Returns the current record's "fecha_ini" value
 * @method string              getFechaAnt()    Returns the current record's "fecha_ant" value
 * @method string              getCruce()       Returns the current record's "cruce" value
 * @method Doctrine_Collection getCOMISIONES()  Returns the current record's "COMISIONES" collection
 * @method TIPOS_COMISION      setTipcomi()     Sets the current record's "tipcomi" value
 * @method TIPOS_COMISION      setDescomi()     Sets the current record's "descomi" value
 * @method TIPOS_COMISION      setObserv()      Sets the current record's "observ" value
 * @method TIPOS_COMISION      setDcomi()       Sets the current record's "dcomi" value
 * @method TIPOS_COMISION      setViaticos()    Sets the current record's "viaticos" value
 * @method TIPOS_COMISION      setManutencion() Sets the current record's "manutencion" value
 * @method TIPOS_COMISION      setTaxis()       Sets the current record's "taxis" value
 * @method TIPOS_COMISION      setObjetos()     Sets the current record's "objetos" value
 * @method TIPOS_COMISION      setDestinos()    Sets the current record's "destinos" value
 * @method TIPOS_COMISION      setFechaIni()    Sets the current record's "fecha_ini" value
 * @method TIPOS_COMISION      setFechaAnt()    Sets the current record's "fecha_ant" value
 * @method TIPOS_COMISION      setCruce()       Sets the current record's "cruce" value
 * @method TIPOS_COMISION      setCOMISIONES()  Sets the current record's "COMISIONES" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTIPOS_COMISION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TIPOS_COMISION');
        $this->hasColumn('tipcomi', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descomi', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('observ', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('dcomi', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('viaticos', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('manutencion', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('taxis', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('objetos', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('destinos', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('fecha_ini', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('fecha_ant', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('cruce', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 4,
             ));
    }

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