Open michalbundyra opened 4 years ago
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 https://github.com/zfcampus/zf-apigility-admin/issues/209#issuecomment-49944154
Okay, I'm going to go back to the alternative you suggested in https://github.com/zfcampus/zf-hal/issues/38#issuecomment-49212676:
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 https://github.com/zfcampus/zf-apigility-admin/issues/209#issuecomment-49946298
This causes issues with resources returning Json representations.
weierophinney:
See https://github.com/zfcampus/zf-hal/issues/38
Originally posted by @jdelisle at https://github.com/zfcampus/zf-apigility-admin/issues/209