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

/**
 * BaseCA_FACTURA_POS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_factura
 * @property integer $id_anhos
 * @property integer $id_punto_venta
 * @property integer $id_caja
 * @property integer $sec_factura
 * @property integer $id_mae_ter
 * @property timestamp $fecha_facturacion
 * @property decimal $valor_bruto
 * @property decimal $valor_iva
 * @property decimal $valor_total
 * @property integer $cajero
 * @property string $observaciones
 * @property integer $estado
 * @property timestamp $fecha_anu
 * @property string $motivo_anu
 * @property integer $id_estado_caja
 * @property decimal $valor_reten
 * @property integer $valor_dcto
 * @property integer $porc_dcto
 * @property integer $valor_dcto_det
 * @property string $email_web
 * 
 * @method integer        getIdFactura()         Returns the current record's "id_factura" value
 * @method integer        getIdAnhos()           Returns the current record's "id_anhos" 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        getSecFactura()        Returns the current record's "sec_factura" 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 decimal        getValorBruto()        Returns the current record's "valor_bruto" value
 * @method decimal        getValorIva()          Returns the current record's "valor_iva" value
 * @method decimal        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        getEstado()            Returns the current record's "estado" value
 * @method timestamp      getFechaAnu()          Returns the current record's "fecha_anu" value
 * @method string         getMotivoAnu()         Returns the current record's "motivo_anu" value
 * @method integer        getIdEstadoCaja()      Returns the current record's "id_estado_caja" value
 * @method decimal        getValorReten()        Returns the current record's "valor_reten" value
 * @method integer        getValorDcto()         Returns the current record's "valor_dcto" value
 * @method integer        getPorcDcto()          Returns the current record's "porc_dcto" value
 * @method integer        getValorDctoDet()      Returns the current record's "valor_dcto_det" value
 * @method string         getEmailWeb()          Returns the current record's "email_web" value
 * @method CA_FACTURA_POS setIdFactura()         Sets the current record's "id_factura" value
 * @method CA_FACTURA_POS setIdAnhos()           Sets the current record's "id_anhos" value
 * @method CA_FACTURA_POS setIdPuntoVenta()      Sets the current record's "id_punto_venta" value
 * @method CA_FACTURA_POS setIdCaja()            Sets the current record's "id_caja" value
 * @method CA_FACTURA_POS setSecFactura()        Sets the current record's "sec_factura" value
 * @method CA_FACTURA_POS setIdMaeTer()          Sets the current record's "id_mae_ter" value
 * @method CA_FACTURA_POS setFechaFacturacion()  Sets the current record's "fecha_facturacion" value
 * @method CA_FACTURA_POS setValorBruto()        Sets the current record's "valor_bruto" value
 * @method CA_FACTURA_POS setValorIva()          Sets the current record's "valor_iva" value
 * @method CA_FACTURA_POS setValorTotal()        Sets the current record's "valor_total" value
 * @method CA_FACTURA_POS setCajero()            Sets the current record's "cajero" value
 * @method CA_FACTURA_POS setObservaciones()     Sets the current record's "observaciones" value
 * @method CA_FACTURA_POS setEstado()            Sets the current record's "estado" value
 * @method CA_FACTURA_POS setFechaAnu()          Sets the current record's "fecha_anu" value
 * @method CA_FACTURA_POS setMotivoAnu()         Sets the current record's "motivo_anu" value
 * @method CA_FACTURA_POS setIdEstadoCaja()      Sets the current record's "id_estado_caja" value
 * @method CA_FACTURA_POS setValorReten()        Sets the current record's "valor_reten" value
 * @method CA_FACTURA_POS setValorDcto()         Sets the current record's "valor_dcto" value
 * @method CA_FACTURA_POS setPorcDcto()          Sets the current record's "porc_dcto" value
 * @method CA_FACTURA_POS setValorDctoDet()      Sets the current record's "valor_dcto_det" value
 * @method CA_FACTURA_POS setEmailWeb()          Sets the current record's "email_web" 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_FACTURA_POS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_FACTURA_POS');
        $this->hasColumn('id_factura', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_anhos', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             '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('sec_factura', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             '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', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_iva', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_total', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('cajero', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('observaciones', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_anu', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_anu', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('id_estado_caja', 'integer', 11, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 11,
             ));
        $this->hasColumn('valor_reten', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('valor_dcto', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('porc_dcto', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_dcto_det', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('email_web', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
    }

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