You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to have distinct types per EntityManager instance, the static methods of the Type class must move to a TypeRegistry service class. This design is inspired by the Doctrine\DBAL\Types\TypeRegistry class.
Introduce the TypeRegistry
Inject the TypeRegistry instance everywhere the static method of the Type class are used
Make the constructor of Type public and non-final to allow injecting dependencies or configuration into the type instances
Feature Request
Copied from:
Typeclass into aTypeRegistryservice mongodb-odm#2818In order to have distinct types per EntityManager instance, the static methods of the Type class must move to a TypeRegistry service class. This design is inspired by the Doctrine\DBAL\Types\TypeRegistry class.
Use case
I want to create a custom type, that needs some services from the container.
Currently, I have to resort on a "ugly" boot() hack in the kernel, to use it: