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

/**
 * BaseCONS_ASIG_PRESUP
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_apropiacion
 * @property integer $id_cpo
 * @property integer $id_unidad
 * @property integer $asignacion
 * @property timestamp $fecha
 * @property string $usuario
 * @property integer $id_vigencia
 * @property string $vigencia
 * @property integer $id_anterior
 * 
 * @method integer          getId()             Returns the current record's "id" value
 * @method integer          getIdApropiacion()  Returns the current record's "id_apropiacion" value
 * @method integer          getIdCpo()          Returns the current record's "id_cpo" value
 * @method integer          getIdUnidad()       Returns the current record's "id_unidad" value
 * @method integer          getAsignacion()     Returns the current record's "asignacion" value
 * @method timestamp        getFecha()          Returns the current record's "fecha" value
 * @method string           getUsuario()        Returns the current record's "usuario" value
 * @method integer          getIdVigencia()     Returns the current record's "id_vigencia" value
 * @method string           getVigencia()       Returns the current record's "vigencia" value
 * @method integer          getIdAnterior()     Returns the current record's "id_anterior" value
 * @method CONS_ASIG_PRESUP setId()             Sets the current record's "id" value
 * @method CONS_ASIG_PRESUP setIdApropiacion()  Sets the current record's "id_apropiacion" value
 * @method CONS_ASIG_PRESUP setIdCpo()          Sets the current record's "id_cpo" value
 * @method CONS_ASIG_PRESUP setIdUnidad()       Sets the current record's "id_unidad" value
 * @method CONS_ASIG_PRESUP setAsignacion()     Sets the current record's "asignacion" value
 * @method CONS_ASIG_PRESUP setFecha()          Sets the current record's "fecha" value
 * @method CONS_ASIG_PRESUP setUsuario()        Sets the current record's "usuario" value
 * @method CONS_ASIG_PRESUP setIdVigencia()     Sets the current record's "id_vigencia" value
 * @method CONS_ASIG_PRESUP setVigencia()       Sets the current record's "vigencia" value
 * @method CONS_ASIG_PRESUP setIdAnterior()     Sets the current record's "id_anterior" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCONS_ASIG_PRESUP extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CONS_ASIG_PRESUP');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_apropiacion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_cpo', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_unidad', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('asignacion', 'integer', 38, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 38,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             '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,
             ));
        $this->hasColumn('vigencia', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('id_anterior', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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