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

/**
 * BaseCOM_PLAN_PROGRAM_COMIS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_plan_comisiones
 * @property integer $vigencia
 * @property integer $id_comisiones
 * @property integer $vigencia_comisiones
 * @property timestamp $fecha_log
 * @property integer $usuario_log
 * @property integer $cdp
 * @property integer $vigencia_cdp
 * @property COM_PLAN_COMISIONES $COM_PLAN_COMISIONES
 * @property COM_PLAN_COMISIONES $COM_PLAN_COMISIONES_2
 * @property COM_PLAN_COMISIONES $COM_PLAN_COMISIONES_3
 * @property COM_PLAN_COMISIONES $COM_PLAN_COMISIONES_4
 * @property COMISIONES $COMISIONES
 * @property COMISIONES $COMISIONES_6
 * @property COMISIONES $COMISIONES_7
 * @property COMISIONES $COMISIONES_8
 * 
 * @method integer                getIdPlanComisiones()      Returns the current record's "id_plan_comisiones" value
 * @method integer                getVigencia()              Returns the current record's "vigencia" value
 * @method integer                getIdComisiones()          Returns the current record's "id_comisiones" value
 * @method integer                getVigenciaComisiones()    Returns the current record's "vigencia_comisiones" value
 * @method timestamp              getFechaLog()              Returns the current record's "fecha_log" value
 * @method integer                getUsuarioLog()            Returns the current record's "usuario_log" value
 * @method integer                getCdp()                   Returns the current record's "cdp" value
 * @method integer                getVigenciaCdp()           Returns the current record's "vigencia_cdp" value
 * @method COM_PLAN_COMISIONES    getCOMPLANCOMISIONES()     Returns the current record's "COM_PLAN_COMISIONES" value
 * @method COM_PLAN_COMISIONES    getCOMPLANCOMISIONES2()    Returns the current record's "COM_PLAN_COMISIONES_2" value
 * @method COM_PLAN_COMISIONES    getCOMPLANCOMISIONES3()    Returns the current record's "COM_PLAN_COMISIONES_3" value
 * @method COM_PLAN_COMISIONES    getCOMPLANCOMISIONES4()    Returns the current record's "COM_PLAN_COMISIONES_4" value
 * @method COMISIONES             getCOMISIONES()            Returns the current record's "COMISIONES" value
 * @method COMISIONES             getCOMISIONES6()           Returns the current record's "COMISIONES_6" value
 * @method COMISIONES             getCOMISIONES7()           Returns the current record's "COMISIONES_7" value
 * @method COMISIONES             getCOMISIONES8()           Returns the current record's "COMISIONES_8" value
 * @method COM_PLAN_PROGRAM_COMIS setIdPlanComisiones()      Sets the current record's "id_plan_comisiones" value
 * @method COM_PLAN_PROGRAM_COMIS setVigencia()              Sets the current record's "vigencia" value
 * @method COM_PLAN_PROGRAM_COMIS setIdComisiones()          Sets the current record's "id_comisiones" value
 * @method COM_PLAN_PROGRAM_COMIS setVigenciaComisiones()    Sets the current record's "vigencia_comisiones" value
 * @method COM_PLAN_PROGRAM_COMIS setFechaLog()              Sets the current record's "fecha_log" value
 * @method COM_PLAN_PROGRAM_COMIS setUsuarioLog()            Sets the current record's "usuario_log" value
 * @method COM_PLAN_PROGRAM_COMIS setCdp()                   Sets the current record's "cdp" value
 * @method COM_PLAN_PROGRAM_COMIS setVigenciaCdp()           Sets the current record's "vigencia_cdp" value
 * @method COM_PLAN_PROGRAM_COMIS setCOMPLANCOMISIONES()     Sets the current record's "COM_PLAN_COMISIONES" value
 * @method COM_PLAN_PROGRAM_COMIS setCOMPLANCOMISIONES2()    Sets the current record's "COM_PLAN_COMISIONES_2" value
 * @method COM_PLAN_PROGRAM_COMIS setCOMPLANCOMISIONES3()    Sets the current record's "COM_PLAN_COMISIONES_3" value
 * @method COM_PLAN_PROGRAM_COMIS setCOMPLANCOMISIONES4()    Sets the current record's "COM_PLAN_COMISIONES_4" value
 * @method COM_PLAN_PROGRAM_COMIS setCOMISIONES()            Sets the current record's "COMISIONES" value
 * @method COM_PLAN_PROGRAM_COMIS setCOMISIONES6()           Sets the current record's "COMISIONES_6" value
 * @method COM_PLAN_PROGRAM_COMIS setCOMISIONES7()           Sets the current record's "COMISIONES_7" value
 * @method COM_PLAN_PROGRAM_COMIS setCOMISIONES8()           Sets the current record's "COMISIONES_8" 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_PROGRAM_COMIS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_PLAN_PROGRAM_COMIS');
        $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_comisiones', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('vigencia_comisiones', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'default' => 'sysdate ',
             '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('cdp', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('vigencia_cdp', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

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

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

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

        $this->hasOne('COMISIONES', array(
             'local' => 'id_comisiones',
             'foreign' => 'id'));

        $this->hasOne('COMISIONES as COMISIONES_6', array(
             'local' => 'vigencia_comisiones',
             'foreign' => 'id'));

        $this->hasOne('COMISIONES as COMISIONES_7', array(
             'local' => 'id_comisiones',
             'foreign' => 'vigencia'));

        $this->hasOne('COMISIONES as COMISIONES_8', array(
             'local' => 'vigencia_comisiones',
             'foreign' => 'vigencia'));
    }
}