Skip to content

Commit 16bfb76

Browse files
committed
Fixed ActiveFixture::load() doesn't populate date with _id
1 parent f874b0a commit 16bfb76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Yii Framework 2 mongodb extension Change Log
44
2.1.10 under development
55
------------------------
66

7-
- no changes in this release.
7+
- Bug #312: Fixed `yii\mongodb\ActiveFixture::load()` doesn't populate data with _id (Lisio)
88

99

1010
2.1.9 November 19, 2019

src/ActiveFixture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function load()
6464
if (empty($data)) {
6565
return;
6666
}
67-
$this->getCollection()->batchInsert($data);
67+
$data = $this->getCollection()->batchInsert($data);
6868
foreach ($data as $alias => $row) {
6969
$this->data[$alias] = $row;
7070
}

0 commit comments

Comments
 (0)