Skip to content

Commit a897d1c

Browse files
author
David Nahodyl
committed
moved comment for clarity on modified line
1 parent 2136f14 commit a897d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Eloquent/Relations/BelongsTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ protected function getEagerModelKeys(array $models)
5252
// First we need to gather all of the keys from the parent models so we know what
5353
// to query for via the eager loading query. We will add them to an array then
5454
// execute a "where in" statement to gather up all of those related records.
55-
// Unlike other DB Engines FM does not support nulls and uses an empty string instead.
5655
foreach ($models as $model) {
5756
$value = $model->{$this->foreignKey};
57+
// Unlike other DB Engines FM does not support nulls and uses an empty string instead.
5858
if (! is_null($value) && $value !== '') {
5959
$keys[] = $value;
6060
}

0 commit comments

Comments
 (0)