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

/**
 * BaseCA_LOG_FACTURA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_log_factura
 * @property integer $id_punto_venta
 * @property integer $id_caja
 * @property integer $consec_fac
 * @property string $sesion_caja
 * @property integer $id_mae_ter
 * @property timestamp $fecha_facturacion
 * @property integer $valor_bruto
 * @property integer $valor_iva
 * @property integer $valor_total
 * @property integer $cajero
 * @property string $observaciones
 * @property integer $id_producto
 * @property integer $cantidad
 * @property integer $valor_uni_bruto
 * @property integer $valor_uni_iva
 * @property integer $valor_uni_total
 * @property integer $id_ts_pc_fp
 * @property integer $valor
 * @property integer $id_bn
 * @property integer $id_cb
 * @property string $num_doc_sop
 * @property timestamp $fecha_doc_sop
 * @property integer $termino_proceso
 * @property timestamp $fecha_log
 * @property string $usuario_log
 * 
 * @method integer        getIdLogFactura()      Returns the current record's "id_log_factura" value
 * @method integer        getIdPuntoVenta()      Returns the current record's "id_punto_venta" value
 * @method integer        getIdCaja()            Returns the current record's "id_caja" value
 * @method integer        getConsecFac()         Returns the current record's "consec_fac" value
 * @method string         getSesionCaja()        Returns the current record's "sesion_caja" value
 * @method integer        getIdMaeTer()          Returns the current record's "id_mae_ter" value
 * @method timestamp      getFechaFacturacion()  Returns the current record's "fecha_facturacion" value
 * @method integer        getValorBruto()        Returns the current record's "valor_bruto" value
 * @method integer        getValorIva()          Returns the current record's "valor_iva" value
 * @method integer        getValorTotal()        Returns the current record's "valor_total" value
 * @method integer        getCajero()            Returns the current record's "cajero" value
 * @method string         getObservaciones()     Returns the current record's "observaciones" value
 * @method integer        getIdProducto()        Returns the current record's "id_producto" value
 * @method integer        getCantidad()          Returns the current record's "cantidad" value
 * @method integer        getValorUniBruto()     Returns the current record's "valor_uni_bruto" value
 * @method integer        getValorUniIva()       Returns the current record's "valor_uni_iva" value
 * @method integer        getValorUniTotal()     Returns the current record's "valor_uni_total" value
 * @method integer        getIdTsPcFp()          Returns the current record's "id_ts_pc_fp" value
 * @method integer        getValor()             Returns the current record's "valor" value
 * @method integer        getIdBn()              Returns the current record's "id_bn" value
 * @method integer        getIdCb()              Returns the current record's "id_cb" value
 * @method string         getNumDocSop()         Returns the current record's "num_doc_sop" value
 * @method timestamp      getFechaDocSop()       Returns the current record's "fecha_doc_sop" value
 * @method integer        getTerminoProceso()    Returns the current record's "termino_proceso" value
 * @method timestamp      getFechaLog()          Returns the current record's "fecha_log" value
 * @method string         getUsuarioLog()        Returns the current record's "usuario_log" value
 * @method CA_LOG_FACTURA setIdLogFactura()      Sets the current record's "id_log_factura" value
 * @method CA_LOG_FACTURA setIdPuntoVenta()      Sets the current record's "id_punto_venta" value
 * @method CA_LOG_FACTURA setIdCaja()            Sets the current record's "id_caja" value
 * @method CA_LOG_FACTURA setConsecFac()         Sets the current record's "consec_fac" value
 * @method CA_LOG_FACTURA setSesionCaja()        Sets the current record's "sesion_caja" value
 * @method CA_LOG_FACTURA setIdMaeTer()          Sets the current record's "id_mae_ter" value
 * @method CA_LOG_FACTURA setFechaFacturacion()  Sets the current record's "fecha_facturacion" value
 * @method CA_LOG_FACTURA setValorBruto()        Sets the current record's "valor_bruto" value
 * @method CA_LOG_FACTURA setValorIva()          Sets the current record's "valor_iva" value
 * @method CA_LOG_FACTURA setValorTotal()        Sets the current record's "valor_total" value
 * @method CA_LOG_FACTURA setCajero()            Sets the current record's "cajero" value
 * @method CA_LOG_FACTURA setObservaciones()     Sets the current record's "observaciones" value
 * @method CA_LOG_FACTURA setIdProducto()        Sets the current record's "id_producto" value
 * @method CA_LOG_FACTURA setCantidad()          Sets the current record's "cantidad" value
 * @method CA_LOG_FACTURA setValorUniBruto()     Sets the current record's "valor_uni_bruto" value
 * @method CA_LOG_FACTURA setValorUniIva()       Sets the current record's "valor_uni_iva" value
 * @method CA_LOG_FACTURA setValorUniTotal()     Sets the current record's "valor_uni_total" value
 * @method CA_LOG_FACTURA setIdTsPcFp()          Sets the current record's "id_ts_pc_fp" value
 * @method CA_LOG_FACTURA setValor()             Sets the current record's "valor" value
 * @method CA_LOG_FACTURA setIdBn()              Sets the current record's "id_bn" value
 * @method CA_LOG_FACTURA setIdCb()              Sets the current record's "id_cb" value
 * @method CA_LOG_FACTURA setNumDocSop()         Sets the current record's "num_doc_sop" value
 * @method CA_LOG_FACTURA setFechaDocSop()       Sets the current record's "fecha_doc_sop" value
 * @method CA_LOG_FACTURA setTerminoProceso()    Sets the current record's "termino_proceso" value
 * @method CA_LOG_FACTURA setFechaLog()          Sets the current record's "fecha_log" value
 * @method CA_LOG_FACTURA setUsuarioLog()        Sets the current record's "usuario_log" value
 * 
 * @package    radicacionVirtualCuentas
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_LOG_FACTURA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_LOG_FACTURA');
        $this->hasColumn('id_log_factura', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_punto_venta', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_caja', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('consec_fac', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('sesion_caja', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_facturacion', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor_bruto', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_iva', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_total', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cajero', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('observaciones', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('id_producto', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cantidad', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_uni_bruto', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_uni_iva', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_uni_total', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ts_pc_fp', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_bn', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cb', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('num_doc_sop', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_doc_sop', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('termino_proceso', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario_log', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        
    }
}