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

/**
 * BasePR_NOV_PLAN_PAGOS_DISTRI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nov_pagos_distri
 * @property integer $id_nivel_agrup
 * @property timestamp $fecha
 * @property string $valor
 * @property integer $id_novedad_pp
 * @property PR_AGRUP_SF $PR_AGRUP_SF
 * @property PR_NOVEDAD_PLAN_PAGOS $PR_NOVEDAD_PLAN_PAGOS
 * 
 * @method integer                  getIdNovPagosDistri()      Returns the current record's "id_nov_pagos_distri" value
 * @method integer                  getIdNivelAgrup()          Returns the current record's "id_nivel_agrup" value
 * @method timestamp                getFecha()                 Returns the current record's "fecha" value
 * @method string                   getValor()                 Returns the current record's "valor" value
 * @method integer                  getIdNovedadPp()           Returns the current record's "id_novedad_pp" value
 * @method PR_AGRUP_SF              getPRAGRUPSF()             Returns the current record's "PR_AGRUP_SF" value
 * @method PR_NOVEDAD_PLAN_PAGOS    getPRNOVEDADPLANPAGOS()    Returns the current record's "PR_NOVEDAD_PLAN_PAGOS" value
 * @method PR_NOV_PLAN_PAGOS_DISTRI setIdNovPagosDistri()      Sets the current record's "id_nov_pagos_distri" value
 * @method PR_NOV_PLAN_PAGOS_DISTRI setIdNivelAgrup()          Sets the current record's "id_nivel_agrup" value
 * @method PR_NOV_PLAN_PAGOS_DISTRI setFecha()                 Sets the current record's "fecha" value
 * @method PR_NOV_PLAN_PAGOS_DISTRI setValor()                 Sets the current record's "valor" value
 * @method PR_NOV_PLAN_PAGOS_DISTRI setIdNovedadPp()           Sets the current record's "id_novedad_pp" value
 * @method PR_NOV_PLAN_PAGOS_DISTRI setPRAGRUPSF()             Sets the current record's "PR_AGRUP_SF" value
 * @method PR_NOV_PLAN_PAGOS_DISTRI setPRNOVEDADPLANPAGOS()    Sets the current record's "PR_NOVEDAD_PLAN_PAGOS" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_NOV_PLAN_PAGOS_DISTRI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_NOV_PLAN_PAGOS_DISTRI');
        $this->hasColumn('id_nov_pagos_distri', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             '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' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor', 'string', 60, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 60,
             ));
        $this->hasColumn('id_novedad_pp', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('PR_NOVEDAD_PLAN_PAGOS', array(
             'local' => 'id_novedad_pp',
             'foreign' => 'id_novedad_pp'));
    }
}