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

/**
 * BasePR_CLASIF_PAC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_nivel_agrup
 * @property string $identifi_pac
 * @property string $identifi_siif
 * @property integer $id_clase_presup
 * @property integer $id_situac_rec
 * @property PR_CLASES_PRESUP $PR_CLASES_PRESUP
 * @property PR_NIVEL_AGRUP $PR_NIVEL_AGRUP
 * @property PR_SITUA_REC $PR_SITUA_REC
 * 
 * @method integer          getId()               Returns the current record's "id" value
 * @method integer          getIdNivelAgrup()     Returns the current record's "id_nivel_agrup" value
 * @method string           getIdentifiPac()      Returns the current record's "identifi_pac" value
 * @method string           getIdentifiSiif()     Returns the current record's "identifi_siif" value
 * @method integer          getIdClasePresup()    Returns the current record's "id_clase_presup" value
 * @method integer          getIdSituacRec()      Returns the current record's "id_situac_rec" value
 * @method PR_CLASES_PRESUP getPRCLASESPRESUP()   Returns the current record's "PR_CLASES_PRESUP" value
 * @method PR_NIVEL_AGRUP   getPRNIVELAGRUP()     Returns the current record's "PR_NIVEL_AGRUP" value
 * @method PR_SITUA_REC     getPRSITUAREC()       Returns the current record's "PR_SITUA_REC" value
 * @method PR_CLASIF_PAC    setId()               Sets the current record's "id" value
 * @method PR_CLASIF_PAC    setIdNivelAgrup()     Sets the current record's "id_nivel_agrup" value
 * @method PR_CLASIF_PAC    setIdentifiPac()      Sets the current record's "identifi_pac" value
 * @method PR_CLASIF_PAC    setIdentifiSiif()     Sets the current record's "identifi_siif" value
 * @method PR_CLASIF_PAC    setIdClasePresup()    Sets the current record's "id_clase_presup" value
 * @method PR_CLASIF_PAC    setIdSituacRec()      Sets the current record's "id_situac_rec" value
 * @method PR_CLASIF_PAC    setPRCLASESPRESUP()   Sets the current record's "PR_CLASES_PRESUP" value
 * @method PR_CLASIF_PAC    setPRNIVELAGRUP()     Sets the current record's "PR_NIVEL_AGRUP" value
 * @method PR_CLASIF_PAC    setPRSITUAREC()       Sets the current record's "PR_SITUA_REC" value
 * 
 * @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_CLASIF_PAC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_CLASIF_PAC');
        $this->hasColumn('id', '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('identifi_pac', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('identifi_siif', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_clase_presup', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_situac_rec', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('PR_NIVEL_AGRUP', array(
             'local' => 'id_nivel_agrup',
             'foreign' => 'id'));

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