<?php

// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('RVC_FORMATO_PROY_RP', 'doctrine');
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BaseRVC_FORMATO_PROY_RP
 *
 * @author Manuel Enrique Paredes Lopez
 */
abstract class BaseRVC_FORMATO_PROY_RP extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('RVC_FORMATO_PROY_RP');

        $this->hasColumn('id_formato_pago', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));

        $this->hasColumn('id_proyecto_ep', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));

        $this->hasColumn('id_rp', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));

        $this->hasColumn('vigencia_rp', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));

        $this->hasColumn('is_rp_sgr', 'integer', 1, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => true,
            'length' => 1,
        ));

        $this->hasColumn('id_rubro', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));

        $this->hasColumn('id_elementos_gasto', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));

        $this->hasColumn('valor', 'decimal', 20, array(
            'notnull' => true,
            'type' => 'decimal',
            'fixed' => 0,
            'unsigned' => false,
            'default' => '0',
            'primary' => false,
            'length' => 20,
        ));

        $this->hasColumn('id_tipo_rec', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));
    }

    public function setUp() {
        parent::setUp();
    }

}
