hydrators fetch problem
weierophinney opened this issue · 5 comments
After update of (zend-mvc) to latest 2.7.1 version I have a problem with fetching hydrators
here is the warning message.
E_WARNING : sort() expects parameter 1 to be array, null given
Error PHP in file : /vendor/zfcampus/zf-apigility-admin/src/Model/AbstractPluginManagerModel.php at line : 65 : E_WARNING : sort() expects parameter 1 to be array, null given
URL is /zf-apigility/api/hydrators
Also get a DoctrineAdapterResource deprecated warning same as #332
/vendor/zendframework/zend-mvc/src/Service/ServiceManagerConfig.php at line : 147 : with type error : E_USER_DEPRECATED : ServiceLocatorAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceLocatorAwareInitializer. Please update your class ZF\Apigility\Admin\Model\DoctrineAdapterResource to remove the implementation, and start injecting your dependencies via factory instead.
URL is /zf-apigility/api/doctrine-adapter
Originally posted by @developer-devPHP at zfcampus/zf-apigility-admin#333
I'm planning to do the pull-request for #332 tomorrow or the day after that.. Still some things to take care of for compatibility with zf-apigility-doctrine.
Originally posted by @JueGer at zfcampus/zf-apigility-admin#333 (comment)
what about hydrators error? Do you have a similar problem? Is it also resolved after in your branch?
Originally posted by @developer-devPHP at zfcampus/zf-apigility-admin#333 (comment)
I only used zf 2.7.1 for a short eval project which I downgraded to 2.6.x because of this deprecation issue. Since this is a different issue and not caused by the new deprecation I would handle this as a seperate issue. Currently my time is rather limited, so I think I wound be able to fix this as well. I'lll have a short look after work, but I can't promise anything at this point.
Originally posted by @JueGer at zfcampus/zf-apigility-admin#333 (comment)
@developer-devPHP I also got an issue on Hydrators after I update my vendor via composer (I don't know which one affects it). The Hydrator Service that is supposedly a selection is now became an input field and its not showing the other hydrator service. So far I'm manually changing my hydrators through module.config.php, but still it's inconvenient.
Originally posted by @JiNexus at zfcampus/zf-apigility-admin#333 (comment)