Skip to content

Commit

Permalink
Merge pull request #9 from viosys/feature/fix-expands
Browse files Browse the repository at this point in the history
fix expand in Navigation Property
  • Loading branch information
FalkoHilbert authored Feb 29, 2024
2 parents 00376d2 + 2ff667e commit 426d493
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Schema/NavigationProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ public function convert($value, Builder $query)
$expands = $expands->getExpands();
}

if(!is_array($expands) )
{
$expands = [$expands];
}

$query->navigateTo($this->name)
->setExpands($expands ?? []);

Expand Down

0 comments on commit 426d493

Please sign in to comment.