doctrine / doctrine-laminas-hydrator

Doctrine hydrators for Laminas applications
https://www.doctrine-project.org/projects/doctrine-laminas-hydrator.html
MIT License
33 stars 19 forks source link

doctrine/inflector support for orm2.7 #14

Closed kokspflanze closed 4 years ago

kokspflanze commented 4 years ago

added the current version of doctrine/inflector and doctrine/persistence, that are used in orm2.7 to fix the deprecated warnings in the current stable doctrine/orm system

also removed unused use statements.

also mention in https://github.com/doctrine/doctrine-laminas-hydrator/issues/11 but nobody can use the latest release.

TomHAnderson commented 4 years ago

I didn't realize folks would want to use this repo with an older version; but your changes look good and all pass.

TomHAnderson commented 4 years ago

https://github.com/doctrine/doctrine-laminas-hydrator/releases/tag/2.0.5

kokspflanze commented 4 years ago

thanks @TomHAnderson

the stable doctrine/orm require version 1 of inflector, https://github.com/doctrine/orm/blob/2.7/composer.json#L31 , is there any better way? to force the latest Version.

if i check packagist downloads and compare 2.0.2 and 2.0.4 https://packagist.org/packages/doctrine/doctrine-laminas-hydrator/stats#2.0.4 it looks for me that im not the only one with the problem. Maybe you have a better way, would be cool to know=]

TomHAnderson commented 4 years ago

I don't think this PR will benefit anyone because of your latest note.

This PR is a replacement for https://github.com/doctrine/DoctrineModule/tree/2.1.10/src/DoctrineModule/Stdlib/Hydrator which works just fine with older versions. If you want/need to use an older version of Doctrine then use the older version of DoctrineModule.