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

/**
 * BaseTS_OBLIGACION_IVA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_obliga_iva
 * @property integer $id_obligacion
 * @property integer $secuencia
 * @property string $tipo_iva
 * @property decimal $base_iva
 * @property decimal $porcentaje_iva
 * @property decimal $valor_iva
 * @property decimal $total_iva
 * @property timestamp $fecha_proceso
 * @property integer $id_vigencia
 * @property string $ano_fiscal
 * @property TS_OBLIGACION $TS_OBLIGACION
 * @property TS_OBLIGACION $TS_OBLIGACION_2
 * @property TS_OBLIGACION $TS_OBLIGACION_3
 * @property TS_OBLIGACION $TS_OBLIGACION_4
 * @property TS_OBLIGACION $TS_OBLIGACION_5
 * @property TS_OBLIGACION $TS_OBLIGACION_6
 * @property TS_OBLIGACION $TS_OBLIGACION_7
 * @property TS_OBLIGACION $TS_OBLIGACION_8
 * @property TS_OBLIGACION $TS_OBLIGACION_9
 * @property TS_OBLIGACION $TS_OBLIGACION_10
 * @property TS_OBLIGACION $TS_OBLIGACION_11
 * @property TS_OBLIGACION $TS_OBLIGACION_12
 * @property TS_OBLIGACION $TS_OBLIGACION_13
 * @property TS_OBLIGACION $TS_OBLIGACION_14
 * @property TS_OBLIGACION $TS_OBLIGACION_15
 * @property TS_OBLIGACION $TS_OBLIGACION_16
 * 
 * @method integer           getIdObligaIva()      Returns the current record's "id_obliga_iva" value
 * @method integer           getIdObligacion()     Returns the current record's "id_obligacion" value
 * @method integer           getSecuencia()        Returns the current record's "secuencia" value
 * @method string            getTipoIva()          Returns the current record's "tipo_iva" value
 * @method decimal           getBaseIva()          Returns the current record's "base_iva" value
 * @method decimal           getPorcentajeIva()    Returns the current record's "porcentaje_iva" value
 * @method decimal           getValorIva()         Returns the current record's "valor_iva" value
 * @method decimal           getTotalIva()         Returns the current record's "total_iva" 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            getAnoFiscal()        Returns the current record's "ano_fiscal" value
 * @method TS_OBLIGACION     getTSOBLIGACION()     Returns the current record's "TS_OBLIGACION" value
 * @method TS_OBLIGACION     getTSOBLIGACION2()    Returns the current record's "TS_OBLIGACION_2" value
 * @method TS_OBLIGACION     getTSOBLIGACION3()    Returns the current record's "TS_OBLIGACION_3" value
 * @method TS_OBLIGACION     getTSOBLIGACION4()    Returns the current record's "TS_OBLIGACION_4" value
 * @method TS_OBLIGACION     getTSOBLIGACION5()    Returns the current record's "TS_OBLIGACION_5" value
 * @method TS_OBLIGACION     getTSOBLIGACION6()    Returns the current record's "TS_OBLIGACION_6" value
 * @method TS_OBLIGACION     getTSOBLIGACION7()    Returns the current record's "TS_OBLIGACION_7" value
 * @method TS_OBLIGACION     getTSOBLIGACION8()    Returns the current record's "TS_OBLIGACION_8" value
 * @method TS_OBLIGACION     getTSOBLIGACION9()    Returns the current record's "TS_OBLIGACION_9" value
 * @method TS_OBLIGACION     getTSOBLIGACION10()   Returns the current record's "TS_OBLIGACION_10" value
 * @method TS_OBLIGACION     getTSOBLIGACION11()   Returns the current record's "TS_OBLIGACION_11" value
 * @method TS_OBLIGACION     getTSOBLIGACION12()   Returns the current record's "TS_OBLIGACION_12" value
 * @method TS_OBLIGACION     getTSOBLIGACION13()   Returns the current record's "TS_OBLIGACION_13" value
 * @method TS_OBLIGACION     getTSOBLIGACION14()   Returns the current record's "TS_OBLIGACION_14" value
 * @method TS_OBLIGACION     getTSOBLIGACION15()   Returns the current record's "TS_OBLIGACION_15" value
 * @method TS_OBLIGACION     getTSOBLIGACION16()   Returns the current record's "TS_OBLIGACION_16" value
 * @method TS_OBLIGACION_IVA setIdObligaIva()      Sets the current record's "id_obliga_iva" value
 * @method TS_OBLIGACION_IVA setIdObligacion()     Sets the current record's "id_obligacion" value
 * @method TS_OBLIGACION_IVA setSecuencia()        Sets the current record's "secuencia" value
 * @method TS_OBLIGACION_IVA setTipoIva()          Sets the current record's "tipo_iva" value
 * @method TS_OBLIGACION_IVA setBaseIva()          Sets the current record's "base_iva" value
 * @method TS_OBLIGACION_IVA setPorcentajeIva()    Sets the current record's "porcentaje_iva" value
 * @method TS_OBLIGACION_IVA setValorIva()         Sets the current record's "valor_iva" value
 * @method TS_OBLIGACION_IVA setTotalIva()         Sets the current record's "total_iva" value
 * @method TS_OBLIGACION_IVA setFechaProceso()     Sets the current record's "fecha_proceso" value
 * @method TS_OBLIGACION_IVA setIdVigencia()       Sets the current record's "id_vigencia" value
 * @method TS_OBLIGACION_IVA setAnoFiscal()        Sets the current record's "ano_fiscal" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION()     Sets the current record's "TS_OBLIGACION" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION2()    Sets the current record's "TS_OBLIGACION_2" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION3()    Sets the current record's "TS_OBLIGACION_3" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION4()    Sets the current record's "TS_OBLIGACION_4" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION5()    Sets the current record's "TS_OBLIGACION_5" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION6()    Sets the current record's "TS_OBLIGACION_6" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION7()    Sets the current record's "TS_OBLIGACION_7" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION8()    Sets the current record's "TS_OBLIGACION_8" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION9()    Sets the current record's "TS_OBLIGACION_9" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION10()   Sets the current record's "TS_OBLIGACION_10" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION11()   Sets the current record's "TS_OBLIGACION_11" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION12()   Sets the current record's "TS_OBLIGACION_12" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION13()   Sets the current record's "TS_OBLIGACION_13" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION14()   Sets the current record's "TS_OBLIGACION_14" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION15()   Sets the current record's "TS_OBLIGACION_15" value
 * @method TS_OBLIGACION_IVA setTSOBLIGACION16()   Sets the current record's "TS_OBLIGACION_16" value
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_OBLIGACION_IVA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_OBLIGACION_IVA');
        $this->hasColumn('id_obliga_iva', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_obligacion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('secuencia', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('tipo_iva', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('base_iva', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('porcentaje_iva', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_iva', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('total_iva', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => true,
             '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('ano_fiscal', 'string', 4, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('TS_OBLIGACION', array(
             'local' => 'id_obligacion',
             'foreign' => 'id_obligacion'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_2', array(
             'local' => 'secuencia',
             'foreign' => 'id_obligacion'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_3', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_obligacion'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_4', array(
             'local' => 'ano_fiscal',
             'foreign' => 'id_obligacion'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_5', array(
             'local' => 'id_obligacion',
             'foreign' => 'secuencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_6', array(
             'local' => 'secuencia',
             'foreign' => 'secuencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_7', array(
             'local' => 'id_vigencia',
             'foreign' => 'secuencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_8', array(
             'local' => 'ano_fiscal',
             'foreign' => 'secuencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_9', array(
             'local' => 'id_obligacion',
             'foreign' => 'id_vigencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_10', array(
             'local' => 'secuencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_11', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_12', array(
             'local' => 'ano_fiscal',
             'foreign' => 'id_vigencia'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_13', array(
             'local' => 'id_obligacion',
             'foreign' => 'ano_fiscal'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_14', array(
             'local' => 'secuencia',
             'foreign' => 'ano_fiscal'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_15', array(
             'local' => 'id_vigencia',
             'foreign' => 'ano_fiscal'));

        $this->hasOne('TS_OBLIGACION as TS_OBLIGACION_16', array(
             'local' => 'ano_fiscal',
             'foreign' => 'ano_fiscal'));
    }
}