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

/**
 * BaseCBR_RESULTADO_REMATE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_resultado_remate
 * @property integer $id_aprueba_remate
 * @property integer $id_tipo_remate
 * @property integer $no_acta
 * @property timestamp $fecha
 * @property clob $detalle_plantilla
 * @property string $observaciones
 * @property string $adjunto
 * @property CBR_REMATE $CBR_REMATE
 * @property CBR_TIPO_REMATE $CBR_TIPO_REMATE
 * 
 * @method integer              getIdResultadoRemate()   Returns the current record's "id_resultado_remate" value
 * @method integer              getIdApruebaRemate()     Returns the current record's "id_aprueba_remate" value
 * @method integer              getIdTipoRemate()        Returns the current record's "id_tipo_remate" value
 * @method integer              getNoActa()              Returns the current record's "no_acta" value
 * @method timestamp            getFecha()               Returns the current record's "fecha" value
 * @method clob                 getDetallePlantilla()    Returns the current record's "detalle_plantilla" value
 * @method string               getObservaciones()       Returns the current record's "observaciones" value
 * @method string               getAdjunto()             Returns the current record's "adjunto" value
 * @method CBR_REMATE           getCBRREMATE()           Returns the current record's "CBR_REMATE" value
 * @method CBR_TIPO_REMATE      getCBRTIPOREMATE()       Returns the current record's "CBR_TIPO_REMATE" value
 * @method CBR_RESULTADO_REMATE setIdResultadoRemate()   Sets the current record's "id_resultado_remate" value
 * @method CBR_RESULTADO_REMATE setIdApruebaRemate()     Sets the current record's "id_aprueba_remate" value
 * @method CBR_RESULTADO_REMATE setIdTipoRemate()        Sets the current record's "id_tipo_remate" value
 * @method CBR_RESULTADO_REMATE setNoActa()              Sets the current record's "no_acta" value
 * @method CBR_RESULTADO_REMATE setFecha()               Sets the current record's "fecha" value
 * @method CBR_RESULTADO_REMATE setDetallePlantilla()    Sets the current record's "detalle_plantilla" value
 * @method CBR_RESULTADO_REMATE setObservaciones()       Sets the current record's "observaciones" value
 * @method CBR_RESULTADO_REMATE setAdjunto()             Sets the current record's "adjunto" value
 * @method CBR_RESULTADO_REMATE setCBRREMATE()           Sets the current record's "CBR_REMATE" value
 * @method CBR_RESULTADO_REMATE setCBRTIPOREMATE()       Sets the current record's "CBR_TIPO_REMATE" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCBR_RESULTADO_REMATE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_RESULTADO_REMATE');
        $this->hasColumn('id_resultado_remate', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_aprueba_remate', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_remate', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_acta', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('detalle_plantilla', 'clob', 4000, array(
             'notnull' => true,
             'type' => 'clob',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('adjunto', 'string', 250, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 250,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('CBR_REMATE', array(
             'local' => 'id_aprueba_remate',
             'foreign' => 'id_remate'));

        $this->hasOne('CBR_TIPO_REMATE', array(
             'local' => 'id_tipo_remate',
             'foreign' => 'id_tipo_remate'));
    }
}