doctrine-json-odm
doctrine-json-odm copied to clipboard
Allow using type names in place of class names
Introduce bundle config to map keys to class names
See https://github.com/dunglas/doctrine-json-odm/issues/63
The static type mapper might seem to be weird but this way we don't need to inject anything extra into the serializer and we do not break BC, especially given the doc encourages overriding the service definition.
Comments welcome, let me know what you think, I'll add doc and tests if it can go forward
@dunglas Please have a look
bump @dunglas What do you think of this approach?
I personally often change class namespaces to better organize code, leading to thorny migrations, so that change would be very welcome!
I +1 👍
@dunglas Addressed change reqs, added tests and notes in readme.
@dunglas Also fixed some unrelated issues to make CI green
@dunglas any chance to see this merge soon ? Can I help with something ?
@TamasSzigeti Do you want to make the modification proposed by @dunglas ? If you don't have time, i can do it !
Let me know 🙂
Thanks for the review, Kévin!
@amenophis Thanks for the offer, go ahead if you wish, otherwise I can take care of it this weekend.
Hi @TamasSzigeti,
Seems you did not had time to push update. Could you give me permissions to push on your fork and will try to fix last comments ?
Thanks
@dunglas Comments addressed
@amenophis Thanks, just did it (:
Really nice feature :+1:
@dunglas Comments addressed plus I fixed the workflow again:
- Switched to using mysql from container as somehow setting legacy auth started failing.
- Enable tests on php 8.2
- doctrine/annotations has to become a direct dependency for latest versions
Might be worth dropping unsupported php and symfony versions in another PR
Thank you very much for your hard work @TamasSzigeti!!