-
-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for auto register Types #1246
Comments
Difference here is that discovery of entities in a namespace is handled by ORM, bundle just passes it over. Considering types are not services, more appropriate place to ask for this feature might be DBAL. But if anyone wants to give this a try here, I'm not against that. |
U're right, I'm closing this for the moment. |
Actually, I was looking into this a bit and it should be possible to make types to be services. Then we would be able to tag these and inject everything tagged as such into dbal. |
I absolutely would like to see types as tagged services, this would enable a whole world of things that are now not possible, e.g. injecting custom services into the type to re-use logic, etc. Also, if we could get rid of that |
@ostrolucky, if types can be services, how could we allow arguments if |
With https://github.com/thunderer/Platenum we can use Enums in php, it also provide a Doctrine custom type witch maps to native
ENUM
mysql type.I'm asking for the ability to automatically discovery and register custom types, as we are already doing for the entity mappings in our
doctrine.yaml
configuration files where we tell into which directories to look for.The text was updated successfully, but these errors were encountered: