Skip to content

Commit fdb8806

Browse files
committed
fix(NavigationProperty): adapt to changes introduced in PR #858
Resolve compatibility issue with `NavigationProperty::generatePropertyValue` after the introduction of targeted entity ID handling in upstream PR #858. Restores support for local extensions without breaking the new `$requestedTarget` logic.
1 parent ce66fd3 commit fdb8806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NavigationProperty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ protected function requestedTargetId(EntitySet $targetSet, NavigationRequest $na
228228
return null;
229229
}
230230

231-
$lexer = new Lexer(Str::after((string) $qualifiedId, ServiceProvider::route() . '/'));
231+
$lexer = new Lexer(Str::after((string) $qualifiedId, app(Endpoint::class)->route() . '/'));
232232
$entity = $lexer->identifier();
233233
if ($entity !== $targetSet->getName()) {
234234
throw new BadRequestException(

0 commit comments

Comments
 (0)