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 8b7e0e6 commit 308eba2Copy full SHA for 308eba2
src/QueryDetector.php
@@ -55,7 +55,7 @@ public function logQuery($query, Collection $backtrace)
55
});
56
57
// We try to access a relation
58
- if (is_array($relation)) {
+ if (is_array($relation) && isset($relation['object'])) {
59
if ($relation['class'] === Relation::class) {
60
$model = get_class($relation['object']->getParent());
61
$relationName = get_class($relation['object']->getRelated());
0 commit comments