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

/**
 * BaseCA_FACTURA_PROD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_factura_prod
 * @property integer $id_factura
 * @property integer $id_producto
 * @property integer $cantidad
 * @property decimal $valor_uni_bruto
 * @property decimal $valor_uni_iva
 * @property decimal $valor_uni_total
 * @property string $referencia
 * @property integer $por_iva
 * @property integer $valor_dcto
 * @property integer $porc_dcto
 * 
 * @method integer         getIdFacturaProd()   Returns the current record's "id_factura_prod" value
 * @method integer         getIdFactura()       Returns the current record's "id_factura" value
 * @method integer         getIdProducto()      Returns the current record's "id_producto" value
 * @method integer         getCantidad()        Returns the current record's "cantidad" value
 * @method decimal         getValorUniBruto()   Returns the current record's "valor_uni_bruto" value
 * @method decimal         getValorUniIva()     Returns the current record's "valor_uni_iva" value
 * @method decimal         getValorUniTotal()   Returns the current record's "valor_uni_total" value
 * @method string          getReferencia()      Returns the current record's "referencia" value
 * @method integer         getPorIva()          Returns the current record's "por_iva" value
 * @method integer         getValorDcto()       Returns the current record's "valor_dcto" value
 * @method integer         getPorcDcto()        Returns the current record's "porc_dcto" value
 * @method CA_FACTURA_PROD setIdFacturaProd()   Sets the current record's "id_factura_prod" value
 * @method CA_FACTURA_PROD setIdFactura()       Sets the current record's "id_factura" value
 * @method CA_FACTURA_PROD setIdProducto()      Sets the current record's "id_producto" value
 * @method CA_FACTURA_PROD setCantidad()        Sets the current record's "cantidad" value
 * @method CA_FACTURA_PROD setValorUniBruto()   Sets the current record's "valor_uni_bruto" value
 * @method CA_FACTURA_PROD setValorUniIva()     Sets the current record's "valor_uni_iva" value
 * @method CA_FACTURA_PROD setValorUniTotal()   Sets the current record's "valor_uni_total" value
 * @method CA_FACTURA_PROD setReferencia()      Sets the current record's "referencia" value
 * @method CA_FACTURA_PROD setPorIva()          Sets the current record's "por_iva" value
 * @method CA_FACTURA_PROD setValorDcto()       Sets the current record's "valor_dcto" value
 * @method CA_FACTURA_PROD setPorcDcto()        Sets the current record's "porc_dcto" 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_PROD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_FACTURA_PROD');
        $this->hasColumn('id_factura_prod', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_factura', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_producto', 'integer', 8, array(
             'notnull' => true,
             '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', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_uni_iva', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_uni_total', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('referencia', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('por_iva', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $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,
             ));
    }

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