-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Can't set params for Hydrator #34
Comments
Here's my response to that: https://groups.google.com/a/zend.com/d/msg/apigility-users/HLZ1KZKi17A/ZewP8VkDSAEJ Originally posted by @poisa at zfcampus/zf-apigility-admin#269 (comment) |
You could subclass it as you did, or you could provide a factory for the ClassMethods hydrator and assign a different name: https://groups.google.com/a/zend.com/d/msg/apigility-users/HLZ1KZKi17A/f3GFcwlLNFEJ Originally posted by @dstockto at zfcampus/zf-apigility-admin#269 (comment) |
@dstockto Thanks, that's what I really want.
There is only one entries added in Admin UI, which is correct; if I configure hydrators below:
or
it'll add 2 entries in selectors. Is it a bug or I do things wrong? I'm working with dev-develop, thanks. Originally posted by @snowwolf007cn at zfcampus/zf-apigility-admin#269 (comment) |
@snowwolf007cn I think that the hydrator manager will let you get a hydrator by either the key or the full class name. It sounds like Apigility is exposing both of these as well. Originally posted by @dstockto at zfcampus/zf-apigility-admin#269 (comment) |
To solve the problem How to set repsonse object key in camelcase but not in underscore?,the best way is to use the ClassMethod Hydrator to false. But the constructor params can't be set in admin UI.
Originally posted by @snowwolf007cn at zfcampus/zf-apigility-admin#269
The text was updated successfully, but these errors were encountered: