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

Commit

Permalink
Merge pull request #27 from spiral/pr/multiple_relation_in_array
Browse files Browse the repository at this point in the history
Update MultipleRelation.php
  • Loading branch information
wolfy-j authored Mar 13, 2019
2 parents cee778c + 778f19b commit a301cd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Spiral/ORM/Entities/Relations/MultipleRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ protected function initInstances(): self
$iterator = new RecordIterator($this->data, $this->class, $this->orm);

foreach ($iterator as $item) {
if (in_array($item, $this->instances)) {
if (in_array($item, $this->instances, true)) {
//Skip duplicates
continue;
}
Expand All @@ -199,4 +199,4 @@ protected function initInstances(): self
* @return array
*/
abstract protected function loadRelated(): array;
}
}

0 comments on commit a301cd1

Please sign in to comment.