Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit a301cd1

Browse files
authored
Merge pull request #27 from spiral/pr/multiple_relation_in_array
Update MultipleRelation.php
2 parents cee778c + 778f19b commit a301cd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/Spiral/ORM/Entities/Relations/MultipleRelation.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ protected function initInstances(): self
178178
$iterator = new RecordIterator($this->data, $this->class, $this->orm);
179179

180180
foreach ($iterator as $item) {
181-
if (in_array($item, $this->instances)) {
181+
if (in_array($item, $this->instances, true)) {
182182
//Skip duplicates
183183
continue;
184184
}
@@ -199,4 +199,4 @@ protected function initInstances(): self
199199
* @return array
200200
*/
201201
abstract protected function loadRelated(): array;
202-
}
202+
}

0 commit comments

Comments
 (0)