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

/**
 * BaseCOM_PLAN_COMISIONADOS_OBJS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $nitocc
 * @property string $codobj
 * @property integer $id_plan_comisiones
 * @property integer $vigencia
 * @property decimal $valor
 * @property integer $estado
 * @property string $observaciones
 * @property decimal $viaticos
 * @property decimal $taxis
 * @property decimal $tarifa
 * @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 TERCEROS $TERCEROS
 * 
 * @method integer                    getNitocc()                Returns the current record's "nitocc" value
 * @method string                     getCodobj()                Returns the current record's "codobj" value
 * @method integer                    getIdPlanComisiones()      Returns the current record's "id_plan_comisiones" value
 * @method integer                    getVigencia()              Returns the current record's "vigencia" value
 * @method decimal                    getValor()                 Returns the current record's "valor" value
 * @method integer                    getEstado()                Returns the current record's "estado" value
 * @method string                     getObservaciones()         Returns the current record's "observaciones" 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 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 TERCEROS                   getTERCEROS()              Returns the current record's "TERCEROS" value
 * @method COM_PLAN_COMISIONADOS_OBJS setNitocc()                Sets the current record's "nitocc" value
 * @method COM_PLAN_COMISIONADOS_OBJS setCodobj()                Sets the current record's "codobj" value
 * @method COM_PLAN_COMISIONADOS_OBJS setIdPlanComisiones()      Sets the current record's "id_plan_comisiones" value
 * @method COM_PLAN_COMISIONADOS_OBJS setVigencia()              Sets the current record's "vigencia" value
 * @method COM_PLAN_COMISIONADOS_OBJS setValor()                 Sets the current record's "valor" value
 * @method COM_PLAN_COMISIONADOS_OBJS setEstado()                Sets the current record's "estado" value
 * @method COM_PLAN_COMISIONADOS_OBJS setObservaciones()         Sets the current record's "observaciones" value
 * @method COM_PLAN_COMISIONADOS_OBJS setViaticos()              Sets the current record's "viaticos" value
 * @method COM_PLAN_COMISIONADOS_OBJS setTaxis()                 Sets the current record's "taxis" value
 * @method COM_PLAN_COMISIONADOS_OBJS setTarifa()                Sets the current record's "tarifa" value
 * @method COM_PLAN_COMISIONADOS_OBJS setCOMPLANCOMISIONES()     Sets the current record's "COM_PLAN_COMISIONES" value
 * @method COM_PLAN_COMISIONADOS_OBJS setCOMPLANCOMISIONES2()    Sets the current record's "COM_PLAN_COMISIONES_2" value
 * @method COM_PLAN_COMISIONADOS_OBJS setCOMPLANCOMISIONES3()    Sets the current record's "COM_PLAN_COMISIONES_3" value
 * @method COM_PLAN_COMISIONADOS_OBJS setCOMPLANCOMISIONES4()    Sets the current record's "COM_PLAN_COMISIONES_4" value
 * @method COM_PLAN_COMISIONADOS_OBJS setTERCEROS()              Sets the current record's "TERCEROS" 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_OBJS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_PLAN_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_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('valor', '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('observaciones', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('viaticos', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('taxis', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('tarifa', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('id_obj_gasto', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             '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('TERCEROS', array(
             'local' => 'nitocc',
             'foreign' => 'nitocc'));
    }
}