Skip to content

Commit

Permalink
fix expand in Navigation Property
Browse files Browse the repository at this point in the history
  • Loading branch information
FalkoHilbert committed Feb 29, 2024
1 parent 00376d2 commit 2ff667e
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 2ff667e

Please sign in to comment.