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

/**
 * BaseCOMISIONADOS_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_comision
 * @property integer $nitocc
 * @property integer $id_transporte
 * @property integer $sueldo
 * @property integer $cargo
 * @property timestamp $fecha_salida
 * @property integer $dias
 * @property string $codreg
 * @property integer $total_comision
 * @property integer $estado
 * @property timestamp $fecha_regreso
 * @property integer $vigencia
 * @property integer $gastos_taxis
 * @property integer $dias_manu
 * @property COMISIONES $COMISIONES
 * @property COMISIONES $COMISIONES_2
 * @property COMISIONES $COMISIONES_3
 * @property COMISIONES $COMISIONES_4
 * @property REGIONALES $REGIONALES
 * @property TERCEROS $TERCEROS
 * @property TRANSPORTES $TRANSPORTES
 * @property COMISIONES $COMISIONES_5
 * @property COMISIONES $COMISIONES_6
 * @property COMISIONES $COMISIONES_7
 * 
 * @method integer               getIdComision()     Returns the current record's "id_comision" value
 * @method integer               getNitocc()         Returns the current record's "nitocc" value
 * @method integer               getIdTransporte()   Returns the current record's "id_transporte" value
 * @method integer               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 integer               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 integer               getVigencia()       Returns the current record's "vigencia" value
 * @method integer               getGastosTaxis()    Returns the current record's "gastos_taxis" value
 * @method integer               getDiasManu()       Returns the current record's "dias_manu" value
 * @method COMISIONES            getCOMISIONES()     Returns the current record's "COMISIONES" value
 * @method COMISIONES            getCOMISIONES2()    Returns the current record's "COMISIONES_2" value
 * @method COMISIONES            getCOMISIONES3()    Returns the current record's "COMISIONES_3" value
 * @method COMISIONES            getCOMISIONES4()    Returns the current record's "COMISIONES_4" value
 * @method REGIONALES            getREGIONALES()     Returns the current record's "REGIONALES" value
 * @method TERCEROS              getTERCEROS()       Returns the current record's "TERCEROS" value
 * @method TRANSPORTES           getTRANSPORTES()    Returns the current record's "TRANSPORTES" value
 * @method COMISIONES            getCOMISIONES5()    Returns the current record's "COMISIONES_5" value
 * @method COMISIONES            getCOMISIONES6()    Returns the current record's "COMISIONES_6" value
 * @method COMISIONES            getCOMISIONES7()    Returns the current record's "COMISIONES_7" value
 * @method COMISIONADOS_CONTRATO setIdComision()     Sets the current record's "id_comision" value
 * @method COMISIONADOS_CONTRATO setNitocc()         Sets the current record's "nitocc" value
 * @method COMISIONADOS_CONTRATO setIdTransporte()   Sets the current record's "id_transporte" value
 * @method COMISIONADOS_CONTRATO setSueldo()         Sets the current record's "sueldo" value
 * @method COMISIONADOS_CONTRATO setCargo()          Sets the current record's "cargo" value
 * @method COMISIONADOS_CONTRATO setFechaSalida()    Sets the current record's "fecha_salida" value
 * @method COMISIONADOS_CONTRATO setDias()           Sets the current record's "dias" value
 * @method COMISIONADOS_CONTRATO setCodreg()         Sets the current record's "codreg" value
 * @method COMISIONADOS_CONTRATO setTotalComision()  Sets the current record's "total_comision" value
 * @method COMISIONADOS_CONTRATO setEstado()         Sets the current record's "estado" value
 * @method COMISIONADOS_CONTRATO setFechaRegreso()   Sets the current record's "fecha_regreso" value
 * @method COMISIONADOS_CONTRATO setVigencia()       Sets the current record's "vigencia" value
 * @method COMISIONADOS_CONTRATO setGastosTaxis()    Sets the current record's "gastos_taxis" value
 * @method COMISIONADOS_CONTRATO setDiasManu()       Sets the current record's "dias_manu" value
 * @method COMISIONADOS_CONTRATO setCOMISIONES()     Sets the current record's "COMISIONES" value
 * @method COMISIONADOS_CONTRATO setCOMISIONES2()    Sets the current record's "COMISIONES_2" value
 * @method COMISIONADOS_CONTRATO setCOMISIONES3()    Sets the current record's "COMISIONES_3" value
 * @method COMISIONADOS_CONTRATO setCOMISIONES4()    Sets the current record's "COMISIONES_4" value
 * @method COMISIONADOS_CONTRATO setREGIONALES()     Sets the current record's "REGIONALES" value
 * @method COMISIONADOS_CONTRATO setTERCEROS()       Sets the current record's "TERCEROS" value
 * @method COMISIONADOS_CONTRATO setTRANSPORTES()    Sets the current record's "TRANSPORTES" value
 * @method COMISIONADOS_CONTRATO setCOMISIONES5()    Sets the current record's "COMISIONES_5" value
 * @method COMISIONADOS_CONTRATO setCOMISIONES6()    Sets the current record's "COMISIONES_6" value
 * @method COMISIONADOS_CONTRATO setCOMISIONES7()    Sets the current record's "COMISIONES_7" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOMISIONADOS_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COMISIONADOS_CONTRATO');
        $this->hasColumn('id_comision', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nitocc', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_transporte', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('sueldo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $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' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('dias', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             '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', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_regreso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('vigencia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('gastos_taxis', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('dias_manu', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

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

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

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

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

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

        $this->hasOne('TRANSPORTES', array(
             'local' => 'id_transporte',
             'foreign' => 'id'));

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

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

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