Skip to content

Commit 374a329

Browse files
author
Shashank Jain
committed
Chore: add comment
1 parent 1c3d5b3 commit 374a329

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/RequestParser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ private function parseFields($fields)
438438
$parent = implode(".", $fieldParts);
439439

440440
if ($relation instanceof HasOne || $relation instanceof HasMany) {
441+
// For hasMany and HasOne, the foreign key is in current relation table, not in parent
441442
$this->relations[$fieldName]["fields"][] = $singular;
442443
}
443444
else {

0 commit comments

Comments
 (0)