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

/**
 * BaseCBR_APRUEBA_REMATE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_aprueba_remate
 * @property integer $id_remate
 * @property integer $no_acta
 * @property timestamp $fecha_acta
 * @property string $adjunto
 * @property string $observaciones
 * @property CBR_REMATE $CBR_REMATE
 * 
 * @method integer            getIdApruebaRemate()   Returns the current record's "id_aprueba_remate" value
 * @method integer            getIdRemate()          Returns the current record's "id_remate" value
 * @method integer            getNoActa()            Returns the current record's "no_acta" value
 * @method timestamp          getFechaActa()         Returns the current record's "fecha_acta" value
 * @method string             getAdjunto()           Returns the current record's "adjunto" value
 * @method string             getObservaciones()     Returns the current record's "observaciones" value
 * @method CBR_REMATE         getCBRREMATE()         Returns the current record's "CBR_REMATE" value
 * @method CBR_APRUEBA_REMATE setIdApruebaRemate()   Sets the current record's "id_aprueba_remate" value
 * @method CBR_APRUEBA_REMATE setIdRemate()          Sets the current record's "id_remate" value
 * @method CBR_APRUEBA_REMATE setNoActa()            Sets the current record's "no_acta" value
 * @method CBR_APRUEBA_REMATE setFechaActa()         Sets the current record's "fecha_acta" value
 * @method CBR_APRUEBA_REMATE setAdjunto()           Sets the current record's "adjunto" value
 * @method CBR_APRUEBA_REMATE setObservaciones()     Sets the current record's "observaciones" value
 * @method CBR_APRUEBA_REMATE setCBRREMATE()         Sets the current record's "CBR_REMATE" 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 BaseCBR_APRUEBA_REMATE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CBR_APRUEBA_REMATE');
        $this->hasColumn('id_aprueba_remate', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_remate', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_acta', 'string', 150, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('fecha_acta', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('adjunto', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('detalle_plantilla', 'clob', 4000, array(
             'notnull' => true,
             'type' => 'string',
             '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('id_plantilla', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));

        $this->hasColumn('id_tipo_documento', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
         $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
         $this->hasColumn('usuario_log', 'integer',20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
         $this->hasColumn('fecha_aprueba', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
         $this->hasColumn('usuario_aprueba', 'integer',20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));




    }

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