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

/**
 * BasePR_FUENTE_FINAN
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $descripcion
 * @property string $abreviatura
 * @property string $especificacion
 * @property integer $id_agrup_rec
 * @property integer $estado_cg
 * @property PR_AGRUP_REC $PR_AGRUP_REC
 * @property Doctrine_Collection $PR_APROPIACION
 * 
 * @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 string              getEspecificacion() Returns the current record's "especificacion" value
 * @method integer             getIdAgrupRec()     Returns the current record's "id_agrup_rec" value
 * @method integer             getEstadoCg()       Returns the current record's "estado_cg" value
 * @method PR_AGRUP_REC        getPRAGRUPREC()     Returns the current record's "PR_AGRUP_REC" value
 * @method Doctrine_Collection getPRAPROPIACION()  Returns the current record's "PR_APROPIACION" collection
 * @method PR_FUENTE_FINAN     setId()             Sets the current record's "id" value
 * @method PR_FUENTE_FINAN     setDescripcion()    Sets the current record's "descripcion" value
 * @method PR_FUENTE_FINAN     setAbreviatura()    Sets the current record's "abreviatura" value
 * @method PR_FUENTE_FINAN     setEspecificacion() Sets the current record's "especificacion" value
 * @method PR_FUENTE_FINAN     setIdAgrupRec()     Sets the current record's "id_agrup_rec" value
 * @method PR_FUENTE_FINAN     setEstadoCg()       Sets the current record's "estado_cg" value
 * @method PR_FUENTE_FINAN     setPRAGRUPREC()     Sets the current record's "PR_AGRUP_REC" value
 * @method PR_FUENTE_FINAN     setPRAPROPIACION()  Sets the current record's "PR_APROPIACION" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_FUENTE_FINAN extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_FUENTE_FINAN');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 30, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('abreviatura', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('especificacion', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('id_agrup_rec', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado_cg', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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

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