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

/**
 * BasePR_PAGOS_DISTRI
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_pr_pagos
 * @property integer $id_nivel_agrup
 * @property timestamp $fecha
 * @property decimal $valor
 * @property PR_AGRUP_SF $PR_AGRUP_SF
 * @property PR_PAGOS $PR_PAGOS
 * 
 * @method integer         getId()             Returns the current record's "id" 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 PR_AGRUP_SF     getPRAGRUPSF()      Returns the current record's "PR_AGRUP_SF" value
 * @method PR_PAGOS        getPRPAGOS()        Returns the current record's "PR_PAGOS" value
 * @method PR_PAGOS_DISTRI setId()             Sets the current record's "id" value
 * @method PR_PAGOS_DISTRI setIdPrPagos()      Sets the current record's "id_pr_pagos" value
 * @method PR_PAGOS_DISTRI setIdNivelAgrup()   Sets the current record's "id_nivel_agrup" value
 * @method PR_PAGOS_DISTRI setFecha()          Sets the current record's "fecha" value
 * @method PR_PAGOS_DISTRI setValor()          Sets the current record's "valor" value
 * @method PR_PAGOS_DISTRI setPRAGRUPSF()      Sets the current record's "PR_AGRUP_SF" value
 * @method PR_PAGOS_DISTRI setPRPAGOS()        Sets the current record's "PR_PAGOS" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_PAGOS_DISTRI extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_PAGOS_DISTRI');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             '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' => false,
             '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,
             ));
    }

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

        $this->hasOne('PR_PAGOS', array(
             'local' => 'id_pr_pagos',
             'foreign' => 'id'));
    }
}