Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from tomaszbrunarski/master
Browse files Browse the repository at this point in the history
fix for "Object" reserved keyword on ColumnValueMapper
  • Loading branch information
tonydspaniard committed Mar 21, 2018
2 parents 5281129 + d51a132 commit 692927e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/mappers/ColumnValueMapper.php
Expand Up @@ -10,7 +10,6 @@
namespace dosamigos\exportable\mappers;

use yii\base\Model;
use yii\base\Object;
use yii\db\ActiveRecordInterface;
use yii\grid\ActionColumn;
use yii\grid\CheckboxColumn;
Expand Down
1 change: 1 addition & 0 deletions src/services/ExportableService.php
Expand Up @@ -34,6 +34,7 @@ public function run(GridView $grid, $type, array $columns, $filename)
$writer = WriterFactory::create($type);

$this->clearBuffers();
ob_start();
$writer->openToBrowser($filename);
if ($model !== null && !in_array($type, [TypeHelper::JSON, TypeHelper::XML])) {
$writer->addRow($mapper->getHeaders($model));
Expand Down

0 comments on commit 692927e

Please sign in to comment.