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

/**
 * BaseCOMISIONADOS_OBJS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $nitocc
 * @property string $codobj
 * @property integer $id_comision
 * @property integer $valor
 * @property integer $estado
 * @property integer $vigencia
 * @property string $observa
 * @property decimal $viaticos
 * @property decimal $taxis
 * @property decimal $tarifa
 * @property COMISIONES $COMISIONES
 * @property COMISIONES $COMISIONES_2
 * @property COMISIONES $COMISIONES_3
 * @property COMISIONES $COMISIONES_4
 * @property TERCEROS $TERCEROS
 * @property COMISIONES $COMISIONES_5
 * 
 * @method integer           getNitocc()       Returns the current record's "nitocc" value
 * @method string            getCodobj()       Returns the current record's "codobj" value
 * @method integer           getIdComision()   Returns the current record's "id_comision" value
 * @method integer           getValor()        Returns the current record's "valor" value
 * @method integer           getEstado()       Returns the current record's "estado" value
 * @method integer           getVigencia()     Returns the current record's "vigencia" value
 * @method string            getObserva()      Returns the current record's "observa" value
 * @method decimal           getViaticos()     Returns the current record's "viaticos" value
 * @method decimal           getTaxis()        Returns the current record's "taxis" value
 * @method decimal           getTarifa()       Returns the current record's "tarifa" 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 TERCEROS          getTERCEROS()     Returns the current record's "TERCEROS" value
 * @method COMISIONES        getCOMISIONES5()  Returns the current record's "COMISIONES_5" value
 * @method COMISIONADOS_OBJS setNitocc()       Sets the current record's "nitocc" value
 * @method COMISIONADOS_OBJS setCodobj()       Sets the current record's "codobj" value
 * @method COMISIONADOS_OBJS setIdComision()   Sets the current record's "id_comision" value
 * @method COMISIONADOS_OBJS setValor()        Sets the current record's "valor" value
 * @method COMISIONADOS_OBJS setEstado()       Sets the current record's "estado" value
 * @method COMISIONADOS_OBJS setVigencia()     Sets the current record's "vigencia" value
 * @method COMISIONADOS_OBJS setObserva()      Sets the current record's "observa" value
 * @method COMISIONADOS_OBJS setViaticos()     Sets the current record's "viaticos" value
 * @method COMISIONADOS_OBJS setTaxis()        Sets the current record's "taxis" value
 * @method COMISIONADOS_OBJS setTarifa()       Sets the current record's "tarifa" value
 * @method COMISIONADOS_OBJS setCOMISIONES()   Sets the current record's "COMISIONES" value
 * @method COMISIONADOS_OBJS setCOMISIONES2()  Sets the current record's "COMISIONES_2" value
 * @method COMISIONADOS_OBJS setCOMISIONES3()  Sets the current record's "COMISIONES_3" value
 * @method COMISIONADOS_OBJS setCOMISIONES4()  Sets the current record's "COMISIONES_4" value
 * @method COMISIONADOS_OBJS setTERCEROS()     Sets the current record's "TERCEROS" value
 * @method COMISIONADOS_OBJS setCOMISIONES5()  Sets the current record's "COMISIONES_5" 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_OBJS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COMISIONADOS_OBJS');
        $this->hasColumn('nitocc', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('codobj', 'string', 20, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_comision', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('valor', '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('vigencia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('observa', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('viaticos', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('taxis', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tarifa', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 20,
             ));
    }

    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' => 'id_comision',
             'foreign' => 'vigencia'));

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

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