Skip to content

Commit 63d9f00

Browse files
committed
Hybrid belongs to bug fix
1 parent b97895d commit 63d9f00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Eloquent/HybridRelations.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function belongsTo($related, $foreignKey = null, $otherKey = null, $relat
109109
$relation = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1]['function'];
110110
}
111111

112-
if ($this->nonElasticModel($related)) {
112+
if ($this->nonElasticModel($related, true)) {
113113
return parent::belongsTo($related, $foreignKey, $otherKey, $relation);
114114
}
115115

0 commit comments

Comments
 (0)