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

/**
 * BaseCA_CIERRE_GESTION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cierre_gestion
 * @property integer $id_gestion
 * @property string $observaciones
 * @property timestamp $fecha_proceso
 * @property timestamp $fechalog
 * @property string $usuariolog
 * @property CA_GESTION $CA_GESTION
 * 
 * @method integer           getIdCierreGestion()   Returns the current record's "id_cierre_gestion" value
 * @method integer           getIdGestion()         Returns the current record's "id_gestion" value
 * @method string            getObservaciones()     Returns the current record's "observaciones" value
 * @method timestamp         getFechaProceso()      Returns the current record's "fecha_proceso" value
 * @method timestamp         getFechalog()          Returns the current record's "fechalog" value
 * @method string            getUsuariolog()        Returns the current record's "usuariolog" value
 * @method CA_GESTION        getCAGESTION()         Returns the current record's "CA_GESTION" value
 * @method CA_CIERRE_GESTION setIdCierreGestion()   Sets the current record's "id_cierre_gestion" value
 * @method CA_CIERRE_GESTION setIdGestion()         Sets the current record's "id_gestion" value
 * @method CA_CIERRE_GESTION setObservaciones()     Sets the current record's "observaciones" value
 * @method CA_CIERRE_GESTION setFechaProceso()      Sets the current record's "fecha_proceso" value
 * @method CA_CIERRE_GESTION setFechalog()          Sets the current record's "fechalog" value
 * @method CA_CIERRE_GESTION setUsuariolog()        Sets the current record's "usuariolog" value
 * @method CA_CIERRE_GESTION setCAGESTION()         Sets the current record's "CA_GESTION" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_CIERRE_GESTION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_CIERRE_GESTION');
        $this->hasColumn('id_cierre_gestion', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_gestion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('observaciones', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('fecha_proceso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fechalog', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuariolog', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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