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

/**
 * BaseCOM_PLAN_COMISIONADOS_PLACOM
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $nitocc
 * @property integer $id_plan_comisiones
 * @property integer $vigencia
 * @property integer $id_transporte
 * @property decimal $sueldo
 * @property integer $cargo
 * @property timestamp $fecha_salida
 * @property integer $dias
 * @property string $codreg
 * @property decimal $total_comision
 * @property integer $estado
 * @property timestamp $fecha_regreso
 * @property decimal $gastos_taxis
 * @property integer $dias_manu
 * @property string $tipter
 * @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 TRANSPORTES $TRANSPORTES
 * @property TERCEROS $TERCEROS
 * @property REGIONALES $REGIONALES
 * @property COM_TIPO_COMISIONADO $COM_TIPO_COMISIONADO
 * 
 * @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                      getIdTransporte()          Returns the current record's "id_transporte" value
 * @method decimal                      getSueldo()                Returns the current record's "sueldo" value
 * @method integer                      getCargo()                 Returns the current record's "cargo" value
 * @method timestamp                    getFechaSalida()           Returns the current record's "fecha_salida" value
 * @method integer                      getDias()                  Returns the current record's "dias" value
 * @method string                       getCodreg()                Returns the current record's "codreg" value
 * @method decimal                      getTotalComision()         Returns the current record's "total_comision" value
 * @method integer                      getEstado()                Returns the current record's "estado" value
 * @method timestamp                    getFechaRegreso()          Returns the current record's "fecha_regreso" value
 * @method decimal                      getGastosTaxis()           Returns the current record's "gastos_taxis" value
 * @method integer                      getDiasManu()              Returns the current record's "dias_manu" value
 * @method string                       getTipter()                Returns the current record's "tipter" 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 TRANSPORTES                  getTRANSPORTES()           Returns the current record's "TRANSPORTES" value
 * @method TERCEROS                     getTERCEROS()              Returns the current record's "TERCEROS" value
 * @method REGIONALES                   getREGIONALES()            Returns the current record's "REGIONALES" value
 * @method COM_TIPO_COMISIONADO         getCOMTIPOCOMISIONADO()    Returns the current record's "COM_TIPO_COMISIONADO" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setNitocc()                Sets the current record's "nitocc" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setIdPlanComisiones()      Sets the current record's "id_plan_comisiones" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setVigencia()              Sets the current record's "vigencia" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setIdTransporte()          Sets the current record's "id_transporte" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setSueldo()                Sets the current record's "sueldo" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setCargo()                 Sets the current record's "cargo" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setFechaSalida()           Sets the current record's "fecha_salida" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setDias()                  Sets the current record's "dias" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setCodreg()                Sets the current record's "codreg" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setTotalComision()         Sets the current record's "total_comision" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setEstado()                Sets the current record's "estado" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setFechaRegreso()          Sets the current record's "fecha_regreso" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setGastosTaxis()           Sets the current record's "gastos_taxis" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setDiasManu()              Sets the current record's "dias_manu" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setTipter()                Sets the current record's "tipter" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setCOMPLANCOMISIONES()     Sets the current record's "COM_PLAN_COMISIONES" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setCOMPLANCOMISIONES2()    Sets the current record's "COM_PLAN_COMISIONES_2" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setCOMPLANCOMISIONES3()    Sets the current record's "COM_PLAN_COMISIONES_3" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setCOMPLANCOMISIONES4()    Sets the current record's "COM_PLAN_COMISIONES_4" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setTRANSPORTES()           Sets the current record's "TRANSPORTES" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setTERCEROS()              Sets the current record's "TERCEROS" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setREGIONALES()            Sets the current record's "REGIONALES" value
 * @method COM_PLAN_COMISIONADOS_PLACOM setCOMTIPOCOMISIONADO()    Sets the current record's "COM_TIPO_COMISIONADO" 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_COMISIONADOS_PLACOM extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_PLAN_COMISIONADOS_PLACOM');
        $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('id_transporte', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('sueldo', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('cargo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_salida', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('dias', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('codreg', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('total_comision', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_regreso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('gastos_taxis', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('dias_manu', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('tipter', 'string', 2, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2,
             ));
        $this->hasColumn('dias_tiempo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('hora_salida', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('hora_regreso', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('liquidar_via', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('dias_tarifa_a', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('dias_tarifa_b', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('porcentaje_dia', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('justificacion_por', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
    }

    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('TRANSPORTES', array(
             'local' => 'id_transporte',
             'foreign' => 'id'));

        $this->hasOne('TERCEROS', array(
             'local' => 'nitocc',
             'foreign' => 'nitocc'));

        $this->hasOne('REGIONALES', array(
             'local' => 'codreg',
             'foreign' => 'codreg'));

        $this->hasOne('COM_TIPO_COMISIONADO', array(
             'local' => 'tipter',
             'foreign' => 'tipter'));
    }
}