Download the PHP package api-skeletons/zf-doctrine-module-zend-hydrator without Composer
On this page you can find all versions of the php package api-skeletons/zf-doctrine-module-zend-hydrator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download api-skeletons/zf-doctrine-module-zend-hydrator
More information about api-skeletons/zf-doctrine-module-zend-hydrator
Files in api-skeletons/zf-doctrine-module-zend-hydrator
Package zf-doctrine-module-zend-hydrator
Short Description Corrects DoctrineModule classes to use zend-hydrator
License MIT
Informations about the package zf-doctrine-module-zend-hydrator
DoctrineModule zend-hydrator
This is a Patch Repository
Since the zendframework/zend-stdlib hydrators were moved into their own repository, zendframework/zend-hydrator, the DoctrineModule repository has not been updated to correctly use the new library. Through many discussions on the issue @doctrineorm continues to maintain they are in line with zendframework/zend-hydrator because, very unusually, the new library was written to be backwards compatible with zendframework/zend-stdlib but that backwards compatibility was removed from zend-hydrator in later versions leaving developers who want to use Doctrine in their projects which allow for custom hydrators out on a limb.
This library overrides the files from DoctrineModule which are broken because they still reference zendframework/zend-stdlib for their hydrators.
Discussion on this issue:
- Jan 30, 2016: https://github.com/doctrine/DoctrineModule/pull/548
- Apr 7, 2016: https://github.com/doctrine/DoctrineModule/pull/558#issuecomment-207212246
Installation
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
Inside your composer.json
file this library must be included before doctrine/doctrine-module. This ordering allows classes from this repository to override the DoctrineModule classes which are broken.
Installation Warnings
You may receive the following warnings. These are to be expected and are not a cause for concern.
When to use this Patch Repository
If you are using custom hydrators for your entities and you see errors like the following, this repository will correct them.
This is a Patch Repository
If you would like to be involved in the conversation at DoctrineModule to help get zendframework/zend-hydrator implemented correctly in @doctrineorm repository you may contribute to the discussions linked above.
Appreciation
Finding this patch would not have been possible without the constant support of Toon Verwerft and his zf-doctrine-hydration-module. It took nearly six months to find a solution and he supported my efforts the whole time. Thank you Toon!