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

/**
 * BaseTS_OBLIGA_EQUIVA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_obliga_equiva
 * @property integer $id_obligacion
 * @property integer $secuencia
 * @property string $tipo_impuesto
 * @property integer $base_impuesto
 * @property integer $tarifa_impuesto
 * @property decimal $valor_impuesto
 * @property timestamp $fecha_proceso
 * @property integer $id_vigencia
 * @property string $ano_fiscal
 * @property integer $id_im
 * @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          getIdObligaEquiva()   Returns the current record's "id_obliga_equiva" value
 * @method integer          getIdObligacion()     Returns the current record's "id_obligacion" value
 * @method integer          getSecuencia()        Returns the current record's "secuencia" value
 * @method string           getTipoImpuesto()     Returns the current record's "tipo_impuesto" value
 * @method integer          getBaseImpuesto()     Returns the current record's "base_impuesto" value
 * @method integer          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           getAnoFiscal()        Returns the current record's "ano_fiscal" value
 * @method integer          getIdIm()             Returns the current record's "id_im" 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_OBLIGA_EQUIVA setIdObligaEquiva()   Sets the current record's "id_obliga_equiva" value
 * @method TS_OBLIGA_EQUIVA setIdObligacion()     Sets the current record's "id_obligacion" value
 * @method TS_OBLIGA_EQUIVA setSecuencia()        Sets the current record's "secuencia" value
 * @method TS_OBLIGA_EQUIVA setTipoImpuesto()     Sets the current record's "tipo_impuesto" value
 * @method TS_OBLIGA_EQUIVA setBaseImpuesto()     Sets the current record's "base_impuesto" value
 * @method TS_OBLIGA_EQUIVA setTarifaImpuesto()   Sets the current record's "tarifa_impuesto" value
 * @method TS_OBLIGA_EQUIVA setValorImpuesto()    Sets the current record's "valor_impuesto" value
 * @method TS_OBLIGA_EQUIVA setFechaProceso()     Sets the current record's "fecha_proceso" value
 * @method TS_OBLIGA_EQUIVA setIdVigencia()       Sets the current record's "id_vigencia" value
 * @method TS_OBLIGA_EQUIVA setAnoFiscal()        Sets the current record's "ano_fiscal" value
 * @method TS_OBLIGA_EQUIVA setIdIm()             Sets the current record's "id_im" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION()     Sets the current record's "TS_OBLIGACION" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION2()    Sets the current record's "TS_OBLIGACION_2" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION3()    Sets the current record's "TS_OBLIGACION_3" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION4()    Sets the current record's "TS_OBLIGACION_4" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION5()    Sets the current record's "TS_OBLIGACION_5" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION6()    Sets the current record's "TS_OBLIGACION_6" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION7()    Sets the current record's "TS_OBLIGACION_7" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION8()    Sets the current record's "TS_OBLIGACION_8" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION9()    Sets the current record's "TS_OBLIGACION_9" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION10()   Sets the current record's "TS_OBLIGACION_10" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION11()   Sets the current record's "TS_OBLIGACION_11" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION12()   Sets the current record's "TS_OBLIGACION_12" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION13()   Sets the current record's "TS_OBLIGACION_13" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION14()   Sets the current record's "TS_OBLIGACION_14" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION15()   Sets the current record's "TS_OBLIGACION_15" value
 * @method TS_OBLIGA_EQUIVA setTSOBLIGACION16()   Sets the current record's "TS_OBLIGACION_16" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_OBLIGA_EQUIVA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_OBLIGA_EQUIVA');
        $this->hasColumn('id_obliga_equiva', '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_impuesto', 'string', 20, array(
             'notnull' => true,
             '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', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('valor_impuesto', 'decimal', 38, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $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,
             ));
        $this->hasColumn('id_im', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    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' => 'id_obligacion',
             'foreign' => 'secuencia'));

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

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

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

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

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

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

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

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

        $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' => 'id_vigencia',
             'foreign' => 'ano_fiscal'));

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

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

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

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