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

/**
 * BasePR_MP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_mp
 * @property string $descripcion
 * @property string $abreviatura
 * @property Doctrine_Collection $PR_PG
 * 
 * @method integer             getIdMp()        Returns the current record's "id_mp" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method string              getAbreviatura() Returns the current record's "abreviatura" value
 * @method Doctrine_Collection getPRPG()        Returns the current record's "PR_PG" collection
 * @method PR_MP               setIdMp()        Sets the current record's "id_mp" value
 * @method PR_MP               setDescripcion() Sets the current record's "descripcion" value
 * @method PR_MP               setAbreviatura() Sets the current record's "abreviatura" value
 * @method PR_MP               setPRPG()        Sets the current record's "PR_PG" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_MP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_MP');
        $this->hasColumn('id_mp', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('abreviatura', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('PR_PG', array(
             'local' => 'id_mp',
             'foreign' => 'id_mp'));
    }
}