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

/**
 * BaseTSRD_SAFI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_rc
 * @property integer $id_rc_deduccion
 * @property string $tipo_impuesto
 * @property integer $base_impuesto
 * @property decimal $tarifa_impuesto
 * @property decimal $valor_impuesto
 * @property timestamp $fecha_proceso
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property integer $id_im
 * @property integer $id_mae_ter
 * @property string $codimp
 * 
 * @method integer   getId()              Returns the current record's "id" value
 * @method integer   getIdRc()            Returns the current record's "id_rc" value
 * @method integer   getIdRcDeduccion()   Returns the current record's "id_rc_deduccion" value
 * @method string    getTipoImpuesto()    Returns the current record's "tipo_impuesto" value
 * @method integer   getBaseImpuesto()    Returns the current record's "base_impuesto" value
 * @method decimal   getTarifaImpuesto()  Returns the current record's "tarifa_impuesto" value
 * @method decimal   getValorImpuesto()   Returns the current record's "valor_impuesto" value
 * @method timestamp getFechaProceso()    Returns the current record's "fecha_proceso" value
 * @method integer   getIdVigencia()      Returns the current record's "id_vigencia" value
 * @method string    getVigencia()        Returns the current record's "vigencia" value
 * @method integer   getIdIm()            Returns the current record's "id_im" value
 * @method integer   getIdMaeTer()        Returns the current record's "id_mae_ter" value
 * @method string    getCodimp()          Returns the current record's "codimp" value
 * @method TSRD_SAFI setId()              Sets the current record's "id" value
 * @method TSRD_SAFI setIdRc()            Sets the current record's "id_rc" value
 * @method TSRD_SAFI setIdRcDeduccion()   Sets the current record's "id_rc_deduccion" value
 * @method TSRD_SAFI setTipoImpuesto()    Sets the current record's "tipo_impuesto" value
 * @method TSRD_SAFI setBaseImpuesto()    Sets the current record's "base_impuesto" value
 * @method TSRD_SAFI setTarifaImpuesto()  Sets the current record's "tarifa_impuesto" value
 * @method TSRD_SAFI setValorImpuesto()   Sets the current record's "valor_impuesto" value
 * @method TSRD_SAFI setFechaProceso()    Sets the current record's "fecha_proceso" value
 * @method TSRD_SAFI setIdVigencia()      Sets the current record's "id_vigencia" value
 * @method TSRD_SAFI setVigencia()        Sets the current record's "vigencia" value
 * @method TSRD_SAFI setIdIm()            Sets the current record's "id_im" value
 * @method TSRD_SAFI setIdMaeTer()        Sets the current record's "id_mae_ter" value
 * @method TSRD_SAFI setCodimp()          Sets the current record's "codimp" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTSRD_SAFI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TSRD_SAFI');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'autoincrement' => true,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_rc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_rc_deduccion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tipo_impuesto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('base_impuesto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tarifa_impuesto', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('valor_impuesto', 'decimal', 38, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
        $this->hasColumn('id_im', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('codimp', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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