diff --git a/src/Schema/NavigationProperty.php b/src/Schema/NavigationProperty.php index e18029b..9f26d87 100644 --- a/src/Schema/NavigationProperty.php +++ b/src/Schema/NavigationProperty.php @@ -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 ?? []);