We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04920a2 commit 4212408Copy full SHA for 4212408
Service/Repository.php
@@ -96,7 +96,7 @@ public function find($id, $routing = null)
96
/**
97
* Returns documents by a set of ids
98
*
99
- * @param array $ids
+ * @param array $ids
100
101
* @return DocumentIterator The objects.
102
*/
@@ -116,7 +116,12 @@ public function findByIds(array $ids)
116
117
$mgetResponse = $manager->getClient()->mget($args);
118
119
- $return = [];
+ $return = [
120
+ 'hits' => [
121
+ 'hits' => [],
122
+ 'total' => 0,
123
+ ]
124
+ ];
125
126
foreach ($mgetResponse['docs'] as $item) {
127
if ($item['found']) {
0 commit comments