<?php

// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('COM_PLAN_TARIFAS_DESTINO', 'doctrine');

/**
 * BaseCOM_PLAN_TARIFAS_DESTINO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $nitocc
 * @property integer $id_plan_comisiones
 * @property integer $vigencia
 * @property integer $codmun
 * @property integer $id_tarifa
 * @property integer $num_viajes
 * @property integer $total
 * @property COM_PLAN_COMISIONADOS_PLACOM $COM_PLAN_COMISIONADOS_PLACOM
 * @property COM_PLAN_COMISIONADOS_PLACOM $COM_PLAN_COMISIONADOS_PLACOM_2
 * @property COM_PLAN_COMISIONADOS_PLACOM $COM_PLAN_COMISIONADOS_PLACOM_3
 * @property COM_PLAN_COMISIONADOS_PLACOM $COM_PLAN_COMISIONADOS_PLACOM_4
 * @property COM_PLAN_COMISIONADOS_PLACOM $COM_PLAN_COMISIONADOS_PLACOM_5
 * @property COM_PLAN_COMISIONADOS_PLACOM $COM_PLAN_COMISIONADOS_PLACOM_6
 * @property COM_PLAN_COMISIONADOS_PLACOM $COM_PLAN_COMISIONADOS_PLACOM_7
 * @property COM_PLAN_COMISIONADOS_PLACOM $COM_PLAN_COMISIONADOS_PLACOM_8
 * @property COM_PLAN_COMISIONADOS_PLACOM $COM_PLAN_COMISIONADOS_PLACOM_9
 * @property MUNICIPIOS $MUNICIPIOS
 * @property TARIFAS_TAXIS $TARIFAS_TAXIS
 * 
 * @method integer                      getNitocc()                         Returns the current record's "nitocc" value
 * @method integer                      getIdPlanComisiones()               Returns the current record's "id_plan_comisiones" value
 * @method integer                      getVigencia()                       Returns the current record's "vigencia" value
 * @method integer                      getCodmun()                         Returns the current record's "codmun" value
 * @method integer                      getIdTarifa()                       Returns the current record's "id_tarifa" value
 * @method integer                      getNumViajes()                      Returns the current record's "num_viajes" value
 * @method integer                      getTotal()                          Returns the current record's "total" value
 * @method COM_PLAN_COMISIONADOS_PLACOM getCOMPLANCOMISIONADOSPLACOM()      Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM" value
 * @method COM_PLAN_COMISIONADOS_PLACOM getCOMPLANCOMISIONADOSPLACOM2()     Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM_2" value
 * @method COM_PLAN_COMISIONADOS_PLACOM getCOMPLANCOMISIONADOSPLACOM3()     Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM_3" value
 * @method COM_PLAN_COMISIONADOS_PLACOM getCOMPLANCOMISIONADOSPLACOM4()     Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM_4" value
 * @method COM_PLAN_COMISIONADOS_PLACOM getCOMPLANCOMISIONADOSPLACOM5()     Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM_5" value
 * @method COM_PLAN_COMISIONADOS_PLACOM getCOMPLANCOMISIONADOSPLACOM6()     Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM_6" value
 * @method COM_PLAN_COMISIONADOS_PLACOM getCOMPLANCOMISIONADOSPLACOM7()     Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM_7" value
 * @method COM_PLAN_COMISIONADOS_PLACOM getCOMPLANCOMISIONADOSPLACOM8()     Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM_8" value
 * @method COM_PLAN_COMISIONADOS_PLACOM getCOMPLANCOMISIONADOSPLACOM9()     Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM_9" value
 * @method MUNICIPIOS                   getMUNICIPIOS()                     Returns the current record's "MUNICIPIOS" value
 * @method TARIFAS_TAXIS                getTARIFASTAXIS()                   Returns the current record's "TARIFAS_TAXIS" value
 * @method COM_PLAN_TARIFAS_DESTINO     setNitocc()                         Sets the current record's "nitocc" value
 * @method COM_PLAN_TARIFAS_DESTINO     setIdPlanComisiones()               Sets the current record's "id_plan_comisiones" value
 * @method COM_PLAN_TARIFAS_DESTINO     setVigencia()                       Sets the current record's "vigencia" value
 * @method COM_PLAN_TARIFAS_DESTINO     setCodmun()                         Sets the current record's "codmun" value
 * @method COM_PLAN_TARIFAS_DESTINO     setIdTarifa()                       Sets the current record's "id_tarifa" value
 * @method COM_PLAN_TARIFAS_DESTINO     setNumViajes()                      Sets the current record's "num_viajes" value
 * @method COM_PLAN_TARIFAS_DESTINO     setTotal()                          Sets the current record's "total" value
 * @method COM_PLAN_TARIFAS_DESTINO     setCOMPLANCOMISIONADOSPLACOM()      Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM" value
 * @method COM_PLAN_TARIFAS_DESTINO     setCOMPLANCOMISIONADOSPLACOM2()     Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM_2" value
 * @method COM_PLAN_TARIFAS_DESTINO     setCOMPLANCOMISIONADOSPLACOM3()     Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM_3" value
 * @method COM_PLAN_TARIFAS_DESTINO     setCOMPLANCOMISIONADOSPLACOM4()     Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM_4" value
 * @method COM_PLAN_TARIFAS_DESTINO     setCOMPLANCOMISIONADOSPLACOM5()     Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM_5" value
 * @method COM_PLAN_TARIFAS_DESTINO     setCOMPLANCOMISIONADOSPLACOM6()     Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM_6" value
 * @method COM_PLAN_TARIFAS_DESTINO     setCOMPLANCOMISIONADOSPLACOM7()     Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM_7" value
 * @method COM_PLAN_TARIFAS_DESTINO     setCOMPLANCOMISIONADOSPLACOM8()     Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM_8" value
 * @method COM_PLAN_TARIFAS_DESTINO     setCOMPLANCOMISIONADOSPLACOM9()     Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM_9" value
 * @method COM_PLAN_TARIFAS_DESTINO     setMUNICIPIOS()                     Sets the current record's "MUNICIPIOS" value
 * @method COM_PLAN_TARIFAS_DESTINO     setTARIFASTAXIS()                   Sets the current record's "TARIFAS_TAXIS" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCOM_PLAN_TARIFAS_DESTINO extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('COM_PLAN_TARIFAS_DESTINO');
        $this->hasColumn('nitocc', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));
        $this->hasColumn('id_plan_comisiones', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));
        $this->hasColumn('vigencia', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));
        $this->hasColumn('codmun', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));
        $this->hasColumn('id_transporte', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));
        $this->hasColumn('id_tarifa', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('num_viajes', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('total', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0 ',
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('placa_vehiculo', 'string', 20, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('tipo_vehiculo', 'string', 50, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 50,
        ));
        $this->hasColumn('recorrido_vehiculo', 'string', 50, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 50,
        ));
        $this->hasColumn('distancia', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
    }

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

        $this->hasOne('COM_PLAN_COMISIONADOS_PLACOM as COM_PLAN_COMISIONADOS_PLACOM_2', array(
            'local' => 'id_plan_comisiones',
            'foreign' => 'nitocc'));

        $this->hasOne('COM_PLAN_COMISIONADOS_PLACOM as COM_PLAN_COMISIONADOS_PLACOM_3', array(
            'local' => 'vigencia',
            'foreign' => 'nitocc'));

        $this->hasOne('COM_PLAN_COMISIONADOS_PLACOM as COM_PLAN_COMISIONADOS_PLACOM_4', array(
            'local' => 'nitocc',
            'foreign' => 'id_plan_comisiones'));

        $this->hasOne('COM_PLAN_COMISIONADOS_PLACOM as COM_PLAN_COMISIONADOS_PLACOM_5', array(
            'local' => 'id_plan_comisiones',
            'foreign' => 'id_plan_comisiones'));

        $this->hasOne('COM_PLAN_COMISIONADOS_PLACOM as COM_PLAN_COMISIONADOS_PLACOM_6', array(
            'local' => 'vigencia',
            'foreign' => 'id_plan_comisiones'));

        $this->hasOne('COM_PLAN_COMISIONADOS_PLACOM as COM_PLAN_COMISIONADOS_PLACOM_7', array(
            'local' => 'nitocc',
            'foreign' => 'vigencia'));

        $this->hasOne('COM_PLAN_COMISIONADOS_PLACOM as COM_PLAN_COMISIONADOS_PLACOM_8', array(
            'local' => 'id_plan_comisiones',
            'foreign' => 'vigencia'));

        $this->hasOne('COM_PLAN_COMISIONADOS_PLACOM as COM_PLAN_COMISIONADOS_PLACOM_9', array(
            'local' => 'vigencia',
            'foreign' => 'vigencia'));

        $this->hasOne('MUNICIPIOS', array(
            'local' => 'codmun',
            'foreign' => 'codmun'));

        $this->hasOne('TARIFAS_TAXIS', array(
            'local' => 'id_tarifa',
            'foreign' => 'id'));
    }

}
