Skip to content

Commit eb47b49

Browse files
committed
Fixed ActiveFixture::load() doesn't populate data with _id
1 parent b453773 commit eb47b49

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Yii Framework 2 mongodb extension Change Log
55
------------------------
66

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

910

1011
2.1.9 November 19, 2019

src/ActiveFixture.php

+1-1
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)