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

/**
 * BaseTS_OBLIGACION_APORTES
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_obliga_aportes
 * @property integer $id_obligacion
 * @property integer $secuencia
 * @property string $descripcion
 * @property decimal $valor
 * @property integer $id_tercero
 * @property timestamp $fecha_proceso
 * @property integer $id_vigencia
 * @property string $ano_fiscal
 * @property INTERCEROS $INTERCEROS
 * @property TS_OBLIGACION $TS_OBLIGACION
 * @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
 * @property TS_OBLIGACION $TS_OBLIGACION_17
 * 
 * @method integer               getIdObligaAportes()   Returns the current record's "id_obliga_aportes" value
 * @method integer               getIdObligacion()      Returns the current record's "id_obligacion" value
 * @method integer               getSecuencia()         Returns the current record's "secuencia" value
 * @method string                getDescripcion()       Returns the current record's "descripcion" value
 * @method decimal               getValor()             Returns the current record's "valor" value
 * @method integer               getIdTercero()         Returns the current record's "id_tercero" 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 INTERCEROS            getINTERCEROS()        Returns the current record's "INTERCEROS" value
 * @method TS_OBLIGACION         getTSOBLIGACION()      Returns the current record's "TS_OBLIGACION" 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         getTSOBLIGACION17()    Returns the current record's "TS_OBLIGACION_17" value
 * @method TS_OBLIGACION_APORTES setIdObligaAportes()   Sets the current record's "id_obliga_aportes" value
 * @method TS_OBLIGACION_APORTES setIdObligacion()      Sets the current record's "id_obligacion" value
 * @method TS_OBLIGACION_APORTES setSecuencia()         Sets the current record's "secuencia" value
 * @method TS_OBLIGACION_APORTES setDescripcion()       Sets the current record's "descripcion" value
 * @method TS_OBLIGACION_APORTES setValor()             Sets the current record's "valor" value
 * @method TS_OBLIGACION_APORTES setIdTercero()         Sets the current record's "id_tercero" value
 * @method TS_OBLIGACION_APORTES setFechaProceso()      Sets the current record's "fecha_proceso" value
 * @method TS_OBLIGACION_APORTES setIdVigencia()        Sets the current record's "id_vigencia" value
 * @method TS_OBLIGACION_APORTES setAnoFiscal()         Sets the current record's "ano_fiscal" value
 * @method TS_OBLIGACION_APORTES setINTERCEROS()        Sets the current record's "INTERCEROS" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION()      Sets the current record's "TS_OBLIGACION" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION3()     Sets the current record's "TS_OBLIGACION_3" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION4()     Sets the current record's "TS_OBLIGACION_4" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION5()     Sets the current record's "TS_OBLIGACION_5" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION6()     Sets the current record's "TS_OBLIGACION_6" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION7()     Sets the current record's "TS_OBLIGACION_7" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION8()     Sets the current record's "TS_OBLIGACION_8" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION9()     Sets the current record's "TS_OBLIGACION_9" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION10()    Sets the current record's "TS_OBLIGACION_10" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION11()    Sets the current record's "TS_OBLIGACION_11" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION12()    Sets the current record's "TS_OBLIGACION_12" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION13()    Sets the current record's "TS_OBLIGACION_13" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION14()    Sets the current record's "TS_OBLIGACION_14" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION15()    Sets the current record's "TS_OBLIGACION_15" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION16()    Sets the current record's "TS_OBLIGACION_16" value
 * @method TS_OBLIGACION_APORTES setTSOBLIGACION17()    Sets the current record's "TS_OBLIGACION_17" 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_OBLIGACION_APORTES extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_OBLIGACION_APORTES');
        $this->hasColumn('id_obliga_aportes', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_obligacion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('secuencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tercero', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $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('ano_fiscal', 'string', 4, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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