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

/**
 * BaseCOM_COMISIONADO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_comisionado
 * @property integer $id_comision
 * @property integer $nitocc
 * @property decimal $sueldo
 * @property decimal $tarifa
 * @property decimal $num_dias
 * @property timestamp $fecha_salida
 * @property timestamp $fecha_regreso
 * @property COM_COMISION $COM_COMISION
 * @property TERCEROS $TERCEROS
 * 
 * @method integer         getIdComisionado()  Returns the current record's "id_comisionado" value
 * @method integer         getIdComision()     Returns the current record's "id_comision" value
 * @method integer         getNitocc()         Returns the current record's "nitocc" value
 * @method decimal         getSueldo()         Returns the current record's "sueldo" value
 * @method decimal         getTarifa()         Returns the current record's "tarifa" value
 * @method decimal         getNumDias()        Returns the current record's "num_dias" value
 * @method timestamp       getFechaSalida()    Returns the current record's "fecha_salida" value
 * @method timestamp       getFechaRegreso()   Returns the current record's "fecha_regreso" value
 * @method COM_COMISION    getCOMCOMISION()    Returns the current record's "COM_COMISION" value
 * @method TERCEROS        getTERCEROS()       Returns the current record's "TERCEROS" value
 * @method COM_COMISIONADO setIdComisionado()  Sets the current record's "id_comisionado" value
 * @method COM_COMISIONADO setIdComision()     Sets the current record's "id_comision" value
 * @method COM_COMISIONADO setNitocc()         Sets the current record's "nitocc" value
 * @method COM_COMISIONADO setSueldo()         Sets the current record's "sueldo" value
 * @method COM_COMISIONADO setTarifa()         Sets the current record's "tarifa" value
 * @method COM_COMISIONADO setNumDias()        Sets the current record's "num_dias" value
 * @method COM_COMISIONADO setFechaSalida()    Sets the current record's "fecha_salida" value
 * @method COM_COMISIONADO setFechaRegreso()   Sets the current record's "fecha_regreso" value
 * @method COM_COMISIONADO setCOMCOMISION()    Sets the current record's "COM_COMISION" value
 * @method COM_COMISIONADO setTERCEROS()       Sets the current record's "TERCEROS" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOM_COMISIONADO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_COMISIONADO');
        $this->hasColumn('id_comisionado', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_comision', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tercero', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('sueldo', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tarifa', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_dias', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_salida', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_regreso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('liquida', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('porcentaje', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('medio_dia', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        
        
        
        
        
        
    }

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

        $this->hasOne('COM_TERCERO', array(
             'local' => 'id_tercero',
             'foreign' => 'id_tercero'));
    }
}