<?php

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

/**
 * BaseCOM_PLAN_COMISIONES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_plan_comisiones
 * @property integer $vigencia
 * @property integer $id_area
 * @property string $tipcomi
 * @property integer $id_proyectos
 * @property timestamp $fecha
 * @property string $objetivo
 * @property string $actividad
 * @property string $observaciones
 * @property timestamp $fecha_log
 * @property integer $usuario_log
 * @property string $justificacion
 * @property string $interrupcion
 * @property integer $id_original
 * @property integer $vobo
 * @property integer $estado
 * @property timestamp $fecha_estado
 * @property integer $id_usuario_estado
 * @property string $observaciones_estado
 * @property integer $nivel_rechazo
 * @property integer $firmado
 * @property timestamp $fecha_firmado
 * @property integer $id_usuario_firmado
 * @property integer $autorizado
 * @property timestamp $fecha_autorizado
 * @property integer $id_usuario_autorizado
 * @property string $observacion_aut
 * @property AREAS $AREAS
 * @property TIPOS_COMISION $TIPOS_COMISION
 * @property PROYECTOS $PROYECTOS
 * @property Doctrine_Collection $COM_PLAN_DESTINOS_COMISIONADOS
 * @property Doctrine_Collection $COM_PLAN_DESTINOS_COMISIONADOS_2
 * @property Doctrine_Collection $COM_PLAN_DESTINOS_COMISIONADOS_3
 * @property Doctrine_Collection $COM_PLAN_DESTINOS_COMISIONADOS_4
 * @property Doctrine_Collection $COM_PLAN_DESTINOS
 * @property Doctrine_Collection $COM_PLAN_DESTINOS_2
 * @property Doctrine_Collection $COM_PLAN_DESTINOS_3
 * @property Doctrine_Collection $COM_PLAN_DESTINOS_4
 * @property Doctrine_Collection $COM_PLAN_COMISIONADOS_PLACOM
 * @property Doctrine_Collection $COM_PLAN_COMISIONADOS_PLACOM_2
 * @property Doctrine_Collection $COM_PLAN_COMISIONADOS_PLACOM_3
 * @property Doctrine_Collection $COM_PLAN_COMISIONADOS_PLACOM_4
 * @property Doctrine_Collection $COM_PLAN_COMISIONADOS_OBJS
 * @property Doctrine_Collection $COM_PLAN_COMISIONADOS_OBJS_2
 * @property Doctrine_Collection $COM_PLAN_COMISIONADOS_OBJS_3
 * @property Doctrine_Collection $COM_PLAN_COMISIONADOS_OBJS_4
 * 
 * @method integer             getIdPlanComisiones()                 Returns the current record's "id_plan_comisiones" value
 * @method integer             getVigencia()                         Returns the current record's "vigencia" value
 * @method integer             getIdArea()                           Returns the current record's "id_area" value
 * @method string              getTipcomi()                          Returns the current record's "tipcomi" value
 * @method integer             getIdProyectos()                      Returns the current record's "id_proyectos" value
 * @method timestamp           getFecha()                            Returns the current record's "fecha" value
 * @method string              getObjetivo()                         Returns the current record's "objetivo" value
 * @method string              getActividad()                        Returns the current record's "actividad" value
 * @method string              getObservaciones()                    Returns the current record's "observaciones" value
 * @method timestamp           getFechaLog()                         Returns the current record's "fecha_log" value
 * @method integer             getUsuarioLog()                       Returns the current record's "usuario_log" value
 * @method string              getJustificacion()                    Returns the current record's "justificacion" value
 * @method string              getInterrupcion()                     Returns the current record's "interrupcion" value
 * @method integer             getIdOriginal()                       Returns the current record's "id_original" value
 * @method integer             getVobo()                             Returns the current record's "vobo" value
 * @method integer             getEstado()                           Returns the current record's "estado" value
 * @method timestamp           getFechaEstado()                      Returns the current record's "fecha_estado" value
 * @method integer             getIdUsuarioEstado()                  Returns the current record's "id_usuario_estado" value
 * @method string              getObservacionesEstado()              Returns the current record's "observaciones_estado" value
 * @method integer             getNivelRechazo()                     Returns the current record's "nivel_rechazo" value
 * @method integer             getFirmado()                          Returns the current record's "firmado" value
 * @method timestamp           getFechaFirmado()                     Returns the current record's "fecha_firmado" value
 * @method integer             getIdUsuarioFirmado()                 Returns the current record's "id_usuario_firmado" value
 * @method integer             getAutorizado()                       Returns the current record's "autorizado" value
 * @method timestamp           getFechaAutorizado()                  Returns the current record's "fecha_autorizado" value
 * @method integer             getIdUsuarioAutorizado()              Returns the current record's "id_usuario_autorizado" value
 * @method string              getObservacionAut()                   Returns the current record's "observacion_aut" value
 * @method AREAS               getAREAS()                            Returns the current record's "AREAS" value
 * @method TIPOS_COMISION      getTIPOSCOMISION()                    Returns the current record's "TIPOS_COMISION" value
 * @method PROYECTOS           getPROYECTOS()                        Returns the current record's "PROYECTOS" value
 * @method Doctrine_Collection getCOMPLANDESTINOSCOMISIONADOS()      Returns the current record's "COM_PLAN_DESTINOS_COMISIONADOS" collection
 * @method Doctrine_Collection getCOMPLANDESTINOSCOMISIONADOS2()     Returns the current record's "COM_PLAN_DESTINOS_COMISIONADOS_2" collection
 * @method Doctrine_Collection getCOMPLANDESTINOSCOMISIONADOS3()     Returns the current record's "COM_PLAN_DESTINOS_COMISIONADOS_3" collection
 * @method Doctrine_Collection getCOMPLANDESTINOSCOMISIONADOS4()     Returns the current record's "COM_PLAN_DESTINOS_COMISIONADOS_4" collection
 * @method Doctrine_Collection getCOMPLANDESTINOS()                  Returns the current record's "COM_PLAN_DESTINOS" collection
 * @method Doctrine_Collection getCOMPLANDESTINOS2()                 Returns the current record's "COM_PLAN_DESTINOS_2" collection
 * @method Doctrine_Collection getCOMPLANDESTINOS3()                 Returns the current record's "COM_PLAN_DESTINOS_3" collection
 * @method Doctrine_Collection getCOMPLANDESTINOS4()                 Returns the current record's "COM_PLAN_DESTINOS_4" collection
 * @method Doctrine_Collection getCOMPLANCOMISIONADOSPLACOM()        Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM" collection
 * @method Doctrine_Collection getCOMPLANCOMISIONADOSPLACOM2()       Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM_2" collection
 * @method Doctrine_Collection getCOMPLANCOMISIONADOSPLACOM3()       Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM_3" collection
 * @method Doctrine_Collection getCOMPLANCOMISIONADOSPLACOM4()       Returns the current record's "COM_PLAN_COMISIONADOS_PLACOM_4" collection
 * @method Doctrine_Collection getCOMPLANCOMISIONADOSOBJS()          Returns the current record's "COM_PLAN_COMISIONADOS_OBJS" collection
 * @method Doctrine_Collection getCOMPLANCOMISIONADOSOBJS2()         Returns the current record's "COM_PLAN_COMISIONADOS_OBJS_2" collection
 * @method Doctrine_Collection getCOMPLANCOMISIONADOSOBJS3()         Returns the current record's "COM_PLAN_COMISIONADOS_OBJS_3" collection
 * @method Doctrine_Collection getCOMPLANCOMISIONADOSOBJS4()         Returns the current record's "COM_PLAN_COMISIONADOS_OBJS_4" collection
 * @method COM_PLAN_COMISIONES setIdPlanComisiones()                 Sets the current record's "id_plan_comisiones" value
 * @method COM_PLAN_COMISIONES setVigencia()                         Sets the current record's "vigencia" value
 * @method COM_PLAN_COMISIONES setIdArea()                           Sets the current record's "id_area" value
 * @method COM_PLAN_COMISIONES setTipcomi()                          Sets the current record's "tipcomi" value
 * @method COM_PLAN_COMISIONES setIdProyectos()                      Sets the current record's "id_proyectos" value
 * @method COM_PLAN_COMISIONES setFecha()                            Sets the current record's "fecha" value
 * @method COM_PLAN_COMISIONES setObjetivo()                         Sets the current record's "objetivo" value
 * @method COM_PLAN_COMISIONES setActividad()                        Sets the current record's "actividad" value
 * @method COM_PLAN_COMISIONES setObservaciones()                    Sets the current record's "observaciones" value
 * @method COM_PLAN_COMISIONES setFechaLog()                         Sets the current record's "fecha_log" value
 * @method COM_PLAN_COMISIONES setUsuarioLog()                       Sets the current record's "usuario_log" value
 * @method COM_PLAN_COMISIONES setJustificacion()                    Sets the current record's "justificacion" value
 * @method COM_PLAN_COMISIONES setInterrupcion()                     Sets the current record's "interrupcion" value
 * @method COM_PLAN_COMISIONES setIdOriginal()                       Sets the current record's "id_original" value
 * @method COM_PLAN_COMISIONES setVobo()                             Sets the current record's "vobo" value
 * @method COM_PLAN_COMISIONES setEstado()                           Sets the current record's "estado" value
 * @method COM_PLAN_COMISIONES setFechaEstado()                      Sets the current record's "fecha_estado" value
 * @method COM_PLAN_COMISIONES setIdUsuarioEstado()                  Sets the current record's "id_usuario_estado" value
 * @method COM_PLAN_COMISIONES setObservacionesEstado()              Sets the current record's "observaciones_estado" value
 * @method COM_PLAN_COMISIONES setNivelRechazo()                     Sets the current record's "nivel_rechazo" value
 * @method COM_PLAN_COMISIONES setFirmado()                          Sets the current record's "firmado" value
 * @method COM_PLAN_COMISIONES setFechaFirmado()                     Sets the current record's "fecha_firmado" value
 * @method COM_PLAN_COMISIONES setIdUsuarioFirmado()                 Sets the current record's "id_usuario_firmado" value
 * @method COM_PLAN_COMISIONES setAutorizado()                       Sets the current record's "autorizado" value
 * @method COM_PLAN_COMISIONES setFechaAutorizado()                  Sets the current record's "fecha_autorizado" value
 * @method COM_PLAN_COMISIONES setIdUsuarioAutorizado()              Sets the current record's "id_usuario_autorizado" value
 * @method COM_PLAN_COMISIONES setObservacionAut()                   Sets the current record's "observacion_aut" value
 * @method COM_PLAN_COMISIONES setAREAS()                            Sets the current record's "AREAS" value
 * @method COM_PLAN_COMISIONES setTIPOSCOMISION()                    Sets the current record's "TIPOS_COMISION" value
 * @method COM_PLAN_COMISIONES setPROYECTOS()                        Sets the current record's "PROYECTOS" value
 * @method COM_PLAN_COMISIONES setCOMPLANDESTINOSCOMISIONADOS()      Sets the current record's "COM_PLAN_DESTINOS_COMISIONADOS" collection
 * @method COM_PLAN_COMISIONES setCOMPLANDESTINOSCOMISIONADOS2()     Sets the current record's "COM_PLAN_DESTINOS_COMISIONADOS_2" collection
 * @method COM_PLAN_COMISIONES setCOMPLANDESTINOSCOMISIONADOS3()     Sets the current record's "COM_PLAN_DESTINOS_COMISIONADOS_3" collection
 * @method COM_PLAN_COMISIONES setCOMPLANDESTINOSCOMISIONADOS4()     Sets the current record's "COM_PLAN_DESTINOS_COMISIONADOS_4" collection
 * @method COM_PLAN_COMISIONES setCOMPLANDESTINOS()                  Sets the current record's "COM_PLAN_DESTINOS" collection
 * @method COM_PLAN_COMISIONES setCOMPLANDESTINOS2()                 Sets the current record's "COM_PLAN_DESTINOS_2" collection
 * @method COM_PLAN_COMISIONES setCOMPLANDESTINOS3()                 Sets the current record's "COM_PLAN_DESTINOS_3" collection
 * @method COM_PLAN_COMISIONES setCOMPLANDESTINOS4()                 Sets the current record's "COM_PLAN_DESTINOS_4" collection
 * @method COM_PLAN_COMISIONES setCOMPLANCOMISIONADOSPLACOM()        Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM" collection
 * @method COM_PLAN_COMISIONES setCOMPLANCOMISIONADOSPLACOM2()       Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM_2" collection
 * @method COM_PLAN_COMISIONES setCOMPLANCOMISIONADOSPLACOM3()       Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM_3" collection
 * @method COM_PLAN_COMISIONES setCOMPLANCOMISIONADOSPLACOM4()       Sets the current record's "COM_PLAN_COMISIONADOS_PLACOM_4" collection
 * @method COM_PLAN_COMISIONES setCOMPLANCOMISIONADOSOBJS()          Sets the current record's "COM_PLAN_COMISIONADOS_OBJS" collection
 * @method COM_PLAN_COMISIONES setCOMPLANCOMISIONADOSOBJS2()         Sets the current record's "COM_PLAN_COMISIONADOS_OBJS_2" collection
 * @method COM_PLAN_COMISIONES setCOMPLANCOMISIONADOSOBJS3()         Sets the current record's "COM_PLAN_COMISIONADOS_OBJS_3" collection
 * @method COM_PLAN_COMISIONES setCOMPLANCOMISIONADOSOBJS4()         Sets the current record's "COM_PLAN_COMISIONADOS_OBJS_4" collection
 * 
 * @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_COMISIONES extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('COM_PLAN_COMISIONES');
        $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('id_area', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('tipcomi', 'string', 20, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 20,
        ));
        $this->hasColumn('id_proyectos', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('objetivo', 'string', 3000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 3000,
        ));
        $this->hasColumn('actividad', 'string', 3000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 3000,
        ));
        $this->hasColumn('observaciones', 'string', 4000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 2000,
        ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('usuario_log', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('justificacion', 'string', 500, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 500,
        ));
        $this->hasColumn('interrupcion', 'string', 1, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 1,
            'unsigned' => false,
            'default' => '0 ',
            'primary' => false,
            'length' => 1,
        ));
        $this->hasColumn('id_original', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('vobo', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('estado', 'integer', 1, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '1 ',
            'primary' => false,
            'length' => 1,
        ));
        $this->hasColumn('fecha_estado', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('id_usuario_estado', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('observaciones_estado', 'string', 4000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 4000,
        ));
        $this->hasColumn('nivel_rechazo', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('firmado', 'integer', 1, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0 ',
            'primary' => false,
            'length' => 1,
        ));
        $this->hasColumn('fecha_firmado', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('id_usuario_firmado', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('autorizado', 'integer', 1, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0 ',
            'primary' => false,
            'length' => 1,
        ));
        $this->hasColumn('fecha_autorizado', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('id_usuario_autorizado', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('observacion_aut', 'string', 4000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 4000,
        ));
        $this->hasColumn('fecha_salida', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('fecha_regreso', 'timestamp', 7, array(
            'notnull' => true,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('aprobado', 'integer', 1, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0 ',
            'primary' => false,
            'length' => 1,
        ));
        $this->hasColumn('fecha_aprobado', 'timestamp', 7, array(
            'notnull' => false,
            'type' => 'timestamp',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 7,
        ));
        $this->hasColumn('id_usuario_aprobado', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('observacion_aprobado', 'string', 4000, array(
            'notnull' => false,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 4000,
        ));
        $this->hasColumn('id_clasif_comision', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('id_proyectos_viatico', 'integer', 8, array(
            'notnull' => false,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
    }

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

        $this->hasOne('TIPOS_COMISION', array(
            'local' => 'tipcomi',
            'foreign' => 'tipcomi'));

        $this->hasOne('PROYECTOS', array(
            'local' => 'id_proyectos',
            'foreign' => 'id'));

        $this->hasMany('COM_PLAN_DESTINOS_COMISIONADOS', array(
            'local' => 'id_plan_comisiones',
            'foreign' => 'id_plan_comisiones'));

        $this->hasMany('COM_PLAN_DESTINOS_COMISIONADOS as COM_PLAN_DESTINOS_COMISIONADOS_2', array(
            'local' => 'id_plan_comisiones',
            'foreign' => 'vigencia'));

        $this->hasMany('COM_PLAN_DESTINOS_COMISIONADOS as COM_PLAN_DESTINOS_COMISIONADOS_3', array(
            'local' => 'vigencia',
            'foreign' => 'id_plan_comisiones'));

        $this->hasMany('COM_PLAN_DESTINOS_COMISIONADOS as COM_PLAN_DESTINOS_COMISIONADOS_4', array(
            'local' => 'vigencia',
            'foreign' => 'vigencia'));

        $this->hasMany('COM_PLAN_DESTINOS', array(
            'local' => 'id_plan_comisiones',
            'foreign' => 'id_plan_comisiones'));

        $this->hasMany('COM_PLAN_DESTINOS as COM_PLAN_DESTINOS_2', array(
            'local' => 'id_plan_comisiones',
            'foreign' => 'vigencia'));

        $this->hasMany('COM_PLAN_DESTINOS as COM_PLAN_DESTINOS_3', array(
            'local' => 'vigencia',
            'foreign' => 'id_plan_comisiones'));

        $this->hasMany('COM_PLAN_DESTINOS as COM_PLAN_DESTINOS_4', array(
            'local' => 'vigencia',
            'foreign' => 'vigencia'));

        $this->hasMany('COM_PLAN_COMISIONADOS_PLACOM', array(
            'local' => 'id_plan_comisiones',
            'foreign' => 'id_plan_comisiones'));

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

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

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

        $this->hasMany('COM_PLAN_COMISIONADOS_OBJS', array(
            'local' => 'id_plan_comisiones',
            'foreign' => 'id_plan_comisiones'));

        $this->hasMany('COM_PLAN_COMISIONADOS_OBJS as COM_PLAN_COMISIONADOS_OBJS_2', array(
            'local' => 'id_plan_comisiones',
            'foreign' => 'vigencia'));

        $this->hasMany('COM_PLAN_COMISIONADOS_OBJS as COM_PLAN_COMISIONADOS_OBJS_3', array(
            'local' => 'vigencia',
            'foreign' => 'id_plan_comisiones'));

        $this->hasMany('COM_PLAN_COMISIONADOS_OBJS as COM_PLAN_COMISIONADOS_OBJS_4', array(
            'local' => 'vigencia',
            'foreign' => 'vigencia'));
    }

}
