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

/**
 * BasePR_CG_MF
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cg_mf
 * @property integer $porcentaje
 * @property integer $id_obj_gasto
 * @property timestamp $fecha_ini
 * @property timestamp $fecha_fin
 * @property OBJETOS_GASTO $OBJETOS_GASTO
 * 
 * @method integer       getIdCgMf()        Returns the current record's "id_cg_mf" value
 * @method integer       getPorcentaje()    Returns the current record's "porcentaje" value
 * @method integer       getIdObjGasto()    Returns the current record's "id_obj_gasto" value
 * @method timestamp     getFechaIni()      Returns the current record's "fecha_ini" value
 * @method timestamp     getFechaFin()      Returns the current record's "fecha_fin" value
 * @method OBJETOS_GASTO getOBJETOSGASTO()  Returns the current record's "OBJETOS_GASTO" value
 * @method PR_CG_MF      setIdCgMf()        Sets the current record's "id_cg_mf" value
 * @method PR_CG_MF      setPorcentaje()    Sets the current record's "porcentaje" value
 * @method PR_CG_MF      setIdObjGasto()    Sets the current record's "id_obj_gasto" value
 * @method PR_CG_MF      setFechaIni()      Sets the current record's "fecha_ini" value
 * @method PR_CG_MF      setFechaFin()      Sets the current record's "fecha_fin" value
 * @method PR_CG_MF      setOBJETOSGASTO()  Sets the current record's "OBJETOS_GASTO" value
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_CG_MF extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_CG_MF');
        $this->hasColumn('id_cg_mf', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('porcentaje', 'integer', 3, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 3,
             ));
        $this->hasColumn('id_obj_gasto', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_ini', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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