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 f874b0a commit 16bfb76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Yii Framework 2 mongodb extension Change Log
2.1.10 under development
------------------------

- no changes in this release.
- 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 16bfb76

Please sign in to comment.