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

/**
 * BasePR_PAGOS_OBLIGA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_pagos_obliga
 * @property integer $id_pr_pagos
 * @property integer $id_nivel_agrup
 * @property timestamp $fecha
 * @property decimal $valor
 * @property integer $id_obligacion
 * @property integer $secuencia
 * @property integer $id_vigencia
 * @property string $vigencia
 * @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         getIdPagosObliga()    Returns the current record's "id_pagos_obliga" value
 * @method integer         getIdPrPagos()        Returns the current record's "id_pr_pagos" value
 * @method integer         getIdNivelAgrup()     Returns the current record's "id_nivel_agrup" value
 * @method timestamp       getFecha()            Returns the current record's "fecha" value
 * @method decimal         getValor()            Returns the current record's "valor" value
 * @method integer         getIdObligacion()     Returns the current record's "id_obligacion" value
 * @method integer         getSecuencia()        Returns the current record's "secuencia" value
 * @method integer         getIdVigencia()       Returns the current record's "id_vigencia" value
 * @method string          getVigencia()         Returns the current record's "vigencia" 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 PR_PAGOS_OBLIGA setIdPagosObliga()    Sets the current record's "id_pagos_obliga" value
 * @method PR_PAGOS_OBLIGA setIdPrPagos()        Sets the current record's "id_pr_pagos" value
 * @method PR_PAGOS_OBLIGA setIdNivelAgrup()     Sets the current record's "id_nivel_agrup" value
 * @method PR_PAGOS_OBLIGA setFecha()            Sets the current record's "fecha" value
 * @method PR_PAGOS_OBLIGA setValor()            Sets the current record's "valor" value
 * @method PR_PAGOS_OBLIGA setIdObligacion()     Sets the current record's "id_obligacion" value
 * @method PR_PAGOS_OBLIGA setSecuencia()        Sets the current record's "secuencia" value
 * @method PR_PAGOS_OBLIGA setIdVigencia()       Sets the current record's "id_vigencia" value
 * @method PR_PAGOS_OBLIGA setVigencia()         Sets the current record's "vigencia" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION()     Sets the current record's "TS_OBLIGACION" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION2()    Sets the current record's "TS_OBLIGACION_2" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION3()    Sets the current record's "TS_OBLIGACION_3" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION4()    Sets the current record's "TS_OBLIGACION_4" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION5()    Sets the current record's "TS_OBLIGACION_5" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION6()    Sets the current record's "TS_OBLIGACION_6" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION7()    Sets the current record's "TS_OBLIGACION_7" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION8()    Sets the current record's "TS_OBLIGACION_8" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION9()    Sets the current record's "TS_OBLIGACION_9" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION10()   Sets the current record's "TS_OBLIGACION_10" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION11()   Sets the current record's "TS_OBLIGACION_11" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION12()   Sets the current record's "TS_OBLIGACION_12" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION13()   Sets the current record's "TS_OBLIGACION_13" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION14()   Sets the current record's "TS_OBLIGACION_14" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION15()   Sets the current record's "TS_OBLIGACION_15" value
 * @method PR_PAGOS_OBLIGA setTSOBLIGACION16()   Sets the current record's "TS_OBLIGACION_16" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_PAGOS_OBLIGA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_PAGOS_OBLIGA');
        $this->hasColumn('id_pagos_obliga', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_pr_pagos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_nivel_agrup', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             '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('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('vigencia', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             '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' => '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' => 'vigencia',
             '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' => 'vigencia',
             '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' => 'vigencia',
             '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' => 'vigencia',
             'foreign' => 'ano_fiscal'));
    }
}