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

/**
 * BasePR_SITUA_REC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $descripcion
 * @property string $abreviatura
 * @property Doctrine_Collection $PR_CLASIF_PAC
 * @property Doctrine_Collection $PR_CATALOGO_PAC
 * @property Doctrine_Collection $PR_APROPIACION
 * @property Doctrine_Collection $PR_AGRUP_SF
 * 
 * @method integer             getId()              Returns the current record's "id" value
 * @method string              getDescripcion()     Returns the current record's "descripcion" value
 * @method string              getAbreviatura()     Returns the current record's "abreviatura" value
 * @method Doctrine_Collection getPRCLASIFPAC()     Returns the current record's "PR_CLASIF_PAC" collection
 * @method Doctrine_Collection getPRCATALOGOPAC()   Returns the current record's "PR_CATALOGO_PAC" collection
 * @method Doctrine_Collection getPRAPROPIACION()   Returns the current record's "PR_APROPIACION" collection
 * @method Doctrine_Collection getPRAGRUPSF()       Returns the current record's "PR_AGRUP_SF" collection
 * @method PR_SITUA_REC        setId()              Sets the current record's "id" value
 * @method PR_SITUA_REC        setDescripcion()     Sets the current record's "descripcion" value
 * @method PR_SITUA_REC        setAbreviatura()     Sets the current record's "abreviatura" value
 * @method PR_SITUA_REC        setPRCLASIFPAC()     Sets the current record's "PR_CLASIF_PAC" collection
 * @method PR_SITUA_REC        setPRCATALOGOPAC()   Sets the current record's "PR_CATALOGO_PAC" collection
 * @method PR_SITUA_REC        setPRAPROPIACION()   Sets the current record's "PR_APROPIACION" collection
 * @method PR_SITUA_REC        setPRAGRUPSF()       Sets the current record's "PR_AGRUP_SF" 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_SITUA_REC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_SITUA_REC');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('abreviatura', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('PR_CLASIF_PAC', array(
             'local' => 'id',
             'foreign' => 'id_situac_rec'));

        $this->hasMany('PR_CATALOGO_PAC', array(
             'local' => 'id',
             'foreign' => 'id_situac_rec'));

        $this->hasMany('PR_APROPIACION', array(
             'local' => 'id',
             'foreign' => 'id_situac_rec'));

        $this->hasMany('PR_AGRUP_SF', array(
             'local' => 'id',
             'foreign' => 'id_situac_rec'));
    }
}