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

/**
 * BasePR_NOVEDAD_PLAN_PAGOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_novedad_pp
 * @property integer $id_rp
 * @property integer $id_pr_pagos
 * @property string $usuario
 * @property timestamp $fecha_sys
 * @property timestamp $fecha_proceso
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property VIGENCIA $VIGENCIA
 * @property Doctrine_Collection $PR_NOV_PLAN_PAGOS_DISTRI
 * 
 * @method integer               getIdNovedadPp()              Returns the current record's "id_novedad_pp" value
 * @method integer               getIdRp()                     Returns the current record's "id_rp" value
 * @method integer               getIdPrPagos()                Returns the current record's "id_pr_pagos" value
 * @method string                getUsuario()                  Returns the current record's "usuario" value
 * @method timestamp             getFechaSys()                 Returns the current record's "fecha_sys" 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 VIGENCIA              getVIGENCIA()                 Returns the current record's "VIGENCIA" value
 * @method Doctrine_Collection   getPRNOVPLANPAGOSDISTRI()     Returns the current record's "PR_NOV_PLAN_PAGOS_DISTRI" collection
 * @method PR_NOVEDAD_PLAN_PAGOS setIdNovedadPp()              Sets the current record's "id_novedad_pp" value
 * @method PR_NOVEDAD_PLAN_PAGOS setIdRp()                     Sets the current record's "id_rp" value
 * @method PR_NOVEDAD_PLAN_PAGOS setIdPrPagos()                Sets the current record's "id_pr_pagos" value
 * @method PR_NOVEDAD_PLAN_PAGOS setUsuario()                  Sets the current record's "usuario" value
 * @method PR_NOVEDAD_PLAN_PAGOS setFechaSys()                 Sets the current record's "fecha_sys" value
 * @method PR_NOVEDAD_PLAN_PAGOS setFechaProceso()             Sets the current record's "fecha_proceso" value
 * @method PR_NOVEDAD_PLAN_PAGOS setIdVigencia()               Sets the current record's "id_vigencia" value
 * @method PR_NOVEDAD_PLAN_PAGOS setVigencia()                 Sets the current record's "vigencia" value
 * @method PR_NOVEDAD_PLAN_PAGOS setVIGENCIA()                 Sets the current record's "VIGENCIA" value
 * @method PR_NOVEDAD_PLAN_PAGOS setPRNOVPLANPAGOSDISTRI()     Sets the current record's "PR_NOV_PLAN_PAGOS_DISTRI" collection
 * 
 * @package    cartera
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_NOVEDAD_PLAN_PAGOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_NOVEDAD_PLAN_PAGOS');
        $this->hasColumn('id_novedad_pp', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_rp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_pr_pagos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('usuario', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $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' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4,
             ));
    }

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

        $this->hasMany('PR_NOV_PLAN_PAGOS_DISTRI', array(
             'local' => 'id_novedad_pp',
             'foreign' => 'id_novedad_pp'));
    }
}