Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The metadata map is being re-populated on updates to the service #47

Open
michalbundyra opened this issue Jan 10, 2020 · 2 comments
Open

Comments

@michalbundyra
Copy link
Member

This causes issues with resources returning Json representations.

weierophinney:

@jdelisle Yes, please open an issue on zfcampus/zf-apigility-admin; basically, we shouldn't be re-populating the metadata map on updates to the service, and that's the problem you're having.

See zfcampus/zf-hal#38


Originally posted by @jdelisle at zfcampus/zf-apigility-admin#209

@michalbundyra
Copy link
Member Author

This will be harder than I thought to achieve. We actually do need to repopulate the metadata map in instances where the entity or collection are changed, or the hydrator. I'm not sure if we'll be able to resolve this; we may need to instead document workarounds.


Originally posted by @weierophinney at zfcampus/zf-apigility-admin#209 (comment)

@michalbundyra
Copy link
Member Author

Okay, I'm going to go back to the alternative you suggested in zfcampus/zf-hal#38 (comment):

Create a different entity type in your service [than the one defined in the metadata map], and make sure your resource class returns entities using that type.


Originally posted by @jdelisle at zfcampus/zf-apigility-admin#209 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant