You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
If you query a single resource from lists.rest.list (/rest/list/1) the links will generated perfectly.
But if you query the collection from lists.rest.list (/rest/list) you will receive an error.
The reason is, that in this case the route param listId is unknown.
I thought, that the param should be set based on the mapping configuration (route_identifier_name and entity_identifier_name).
Is there an error in the configuration?
Or is there a bug in the mapping?
The text was updated successfully, but these errors were encountered:
Further Information:
The problem exists, if I my resources returns an paginator object.
So the "magic" of zf-hal try's to generate the links for every entity in the collection based on the mapping_data configuration. But it doesn't set the parameters required by the route.
When using the
metadata_map
to create further links, there is a problem with the route parameters.Following config:
If you query a single resource from
lists.rest.list (/rest/list/1)
the links will generated perfectly.But if you query the collection from
lists.rest.list (/rest/list)
you will receive an error.The reason is, that in this case the route param
listId
is unknown.I thought, that the param should be set based on the mapping configuration (
route_identifier_name
andentity_identifier_name
).Is there an error in the configuration?
Or is there a bug in the mapping?
The text was updated successfully, but these errors were encountered: