Skip to content

Commit

Permalink
Fixed ActiveFixture::load() doesn't populate date with _id
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisio committed Jun 2, 2020
1 parent b453773 commit a660f92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Yii Framework 2 mongodb extension Change Log
------------------------

- Bug #308: Fix `yii\mongodb\file\Upload::addFile()` error when uploading file with readonly permissions (sparchatus)
- Bug #312: Fixed `yii\mongodb\ActiveFixture::load()` doesn't populate data with _id (Lisio)


2.1.9 November 19, 2019
Expand Down
2 changes: 1 addition & 1 deletion src/ActiveFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function load()
if (empty($data)) {
return;
}
$this->getCollection()->batchInsert($data);
$data = $this->getCollection()->batchInsert($data);
foreach ($data as $alias => $row) {
$this->data[$alias] = $row;
}
Expand Down

0 comments on commit a660f92

Please sign in to comment.