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

/**
 * BasePR_ASIGNA_OBJ_GASTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_apropiacion
 * @property integer $id_obj_gasto
 * @property integer $valor_objeto
 * @property string $ano_fiscal
 * @property string $mes_fiscal
 * @property timestamp $fecha
 * @property string $usuario
 * @property integer $id_unidad
 * @property integer $id_cpo
 * @property integer $id_asign
 * @property integer $id_vigencia
 * @property OBJETOS_GASTO $OBJETOS_GASTO
 * @property PR_APROPIACION $PR_APROPIACION
 * @property VIGENCIA $VIGENCIA
 * 
 * @method integer             getId()             Returns the current record's "id" value
 * @method integer             getIdApropiacion()  Returns the current record's "id_apropiacion" value
 * @method integer             getIdObjGasto()     Returns the current record's "id_obj_gasto" value
 * @method integer             getValorObjeto()    Returns the current record's "valor_objeto" value
 * @method string              getAnoFiscal()      Returns the current record's "ano_fiscal" value
 * @method string              getMesFiscal()      Returns the current record's "mes_fiscal" value
 * @method timestamp           getFecha()          Returns the current record's "fecha" value
 * @method string              getUsuario()        Returns the current record's "usuario" value
 * @method integer             getIdUnidad()       Returns the current record's "id_unidad" value
 * @method integer             getIdCpo()          Returns the current record's "id_cpo" value
 * @method integer             getIdAsign()        Returns the current record's "id_asign" value
 * @method integer             getIdVigencia()     Returns the current record's "id_vigencia" value
 * @method OBJETOS_GASTO       getOBJETOSGASTO()   Returns the current record's "OBJETOS_GASTO" value
 * @method PR_APROPIACION      getPRAPROPIACION()  Returns the current record's "PR_APROPIACION" value
 * @method VIGENCIA            getVIGENCIA()       Returns the current record's "VIGENCIA" value
 * @method PR_ASIGNA_OBJ_GASTO setId()             Sets the current record's "id" value
 * @method PR_ASIGNA_OBJ_GASTO setIdApropiacion()  Sets the current record's "id_apropiacion" value
 * @method PR_ASIGNA_OBJ_GASTO setIdObjGasto()     Sets the current record's "id_obj_gasto" value
 * @method PR_ASIGNA_OBJ_GASTO setValorObjeto()    Sets the current record's "valor_objeto" value
 * @method PR_ASIGNA_OBJ_GASTO setAnoFiscal()      Sets the current record's "ano_fiscal" value
 * @method PR_ASIGNA_OBJ_GASTO setMesFiscal()      Sets the current record's "mes_fiscal" value
 * @method PR_ASIGNA_OBJ_GASTO setFecha()          Sets the current record's "fecha" value
 * @method PR_ASIGNA_OBJ_GASTO setUsuario()        Sets the current record's "usuario" value
 * @method PR_ASIGNA_OBJ_GASTO setIdUnidad()       Sets the current record's "id_unidad" value
 * @method PR_ASIGNA_OBJ_GASTO setIdCpo()          Sets the current record's "id_cpo" value
 * @method PR_ASIGNA_OBJ_GASTO setIdAsign()        Sets the current record's "id_asign" value
 * @method PR_ASIGNA_OBJ_GASTO setIdVigencia()     Sets the current record's "id_vigencia" value
 * @method PR_ASIGNA_OBJ_GASTO setOBJETOSGASTO()   Sets the current record's "OBJETOS_GASTO" value
 * @method PR_ASIGNA_OBJ_GASTO setPRAPROPIACION()  Sets the current record's "PR_APROPIACION" value
 * @method PR_ASIGNA_OBJ_GASTO setVIGENCIA()       Sets the current record's "VIGENCIA" 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_ASIGNA_OBJ_GASTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_ASIGNA_OBJ_GASTO');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_apropiacion', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_obj_gasto', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor_objeto', 'integer', 38, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('ano_fiscal', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('mes_fiscal', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_unidad', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cpo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_asign', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_vigencia', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('PR_APROPIACION', array(
             'local' => 'id_apropiacion',
             'foreign' => 'id'));

        $this->hasOne('VIGENCIA', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));
    }
}