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

/**
 * BaseCA_FACTURA_RETEN
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_factura_reten
 * @property integer $id_factura
 * @property integer $id_im
 * @property decimal $valor_base
 * @property integer $porcentaje
 * @property decimal $valor_retencion
 * 
 * @method integer          getIdFacturaReten()   Returns the current record's "id_factura_reten" value
 * @method integer          getIdFactura()        Returns the current record's "id_factura" value
 * @method integer          getIdIm()             Returns the current record's "id_im" value
 * @method decimal          getValorBase()        Returns the current record's "valor_base" value
 * @method integer          getPorcentaje()       Returns the current record's "porcentaje" value
 * @method decimal          getValorRetencion()   Returns the current record's "valor_retencion" value
 * @method CA_FACTURA_RETEN setIdFacturaReten()   Sets the current record's "id_factura_reten" value
 * @method CA_FACTURA_RETEN setIdFactura()        Sets the current record's "id_factura" value
 * @method CA_FACTURA_RETEN setIdIm()             Sets the current record's "id_im" value
 * @method CA_FACTURA_RETEN setValorBase()        Sets the current record's "valor_base" value
 * @method CA_FACTURA_RETEN setPorcentaje()       Sets the current record's "porcentaje" value
 * @method CA_FACTURA_RETEN setValorRetencion()   Sets the current record's "valor_retencion" 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_RETEN extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_FACTURA_RETEN');
        $this->hasColumn('id_factura_reten', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_factura', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_im', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_base', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('porcentaje', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_retencion', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0
                ',
             'primary' => false,
             'length' => 38,
             ));
    }

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