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

/**
 * BasePR_CLASES_PRESUP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $codigo
 * @property string $descripcion
 * @property string $tipo_gasto
 * @property Doctrine_Collection $PR_PROG_GEN
 * @property Doctrine_Collection $PR_NIVEL_AGRUP
 * @property Doctrine_Collection $PR_CODIF_PRESUP
 * @property Doctrine_Collection $PR_CLASIF_PAC
 * @property Doctrine_Collection $PR_CATALOGO_PAC
 * 
 * @method integer             getId()              Returns the current record's "id" value
 * @method string              getCodigo()          Returns the current record's "codigo" value
 * @method string              getDescripcion()     Returns the current record's "descripcion" value
 * @method string              getTipoGasto()       Returns the current record's "tipo_gasto" value
 * @method Doctrine_Collection getPRPROGGEN()       Returns the current record's "PR_PROG_GEN" collection
 * @method Doctrine_Collection getPRNIVELAGRUP()    Returns the current record's "PR_NIVEL_AGRUP" collection
 * @method Doctrine_Collection getPRCODIFPRESUP()   Returns the current record's "PR_CODIF_PRESUP" collection
 * @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 PR_CLASES_PRESUP    setId()              Sets the current record's "id" value
 * @method PR_CLASES_PRESUP    setCodigo()          Sets the current record's "codigo" value
 * @method PR_CLASES_PRESUP    setDescripcion()     Sets the current record's "descripcion" value
 * @method PR_CLASES_PRESUP    setTipoGasto()       Sets the current record's "tipo_gasto" value
 * @method PR_CLASES_PRESUP    setPRPROGGEN()       Sets the current record's "PR_PROG_GEN" collection
 * @method PR_CLASES_PRESUP    setPRNIVELAGRUP()    Sets the current record's "PR_NIVEL_AGRUP" collection
 * @method PR_CLASES_PRESUP    setPRCODIFPRESUP()   Sets the current record's "PR_CODIF_PRESUP" collection
 * @method PR_CLASES_PRESUP    setPRCLASIFPAC()     Sets the current record's "PR_CLASIF_PAC" collection
 * @method PR_CLASES_PRESUP    setPRCATALOGOPAC()   Sets the current record's "PR_CATALOGO_PAC" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_CLASES_PRESUP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_CLASES_PRESUP');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 3, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 3,
             ));
        $this->hasColumn('descripcion', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('tipo_gasto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasMany('PR_NIVEL_AGRUP', array(
             'local' => 'id',
             'foreign' => 'id_clase_presup'));

        $this->hasMany('PR_CODIF_PRESUP', array(
             'local' => 'id',
             'foreign' => 'id_clase_presup'));

        $this->hasMany('PR_CLASIF_PAC', array(
             'local' => 'id',
             'foreign' => 'id_clase_presup'));

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