Currently, this bundle is used to configure both doctrine/dbal and doctrine/orm. This can cause issues for people only wanting to use DBAL without ORM (for example https://github.com/symfony/recipes/issues/428). This could be solved by splitting this bundle into two:
doctrine/dbal-bundle which is used to configure the entire DBAL stack and can be used standalonedoctrine/orm-bundle which is used to configure the ORM and has a hard dependency on the DBAL bundle.I've previously discussed this with @stof during the EUFOSSA Hackathon and this could very well be done while preserving BC:
doctrine/dbal-bundle and doctrine/orm-bundle are necessarydoctrine/doctrine-bundle but doctrine/orm-bundle.@stof @kimhemsoe @doctrine/team-symfony-integration: can you think of anything I forgot?
I dont know if this is the right place for this, but i would love to know how this is going. I dont see any reference to this issue, will this feature be implemented in the future or is it still and ongoing discussion?
We haven't put this on the roadmap (yet). For now I want to finish up work for Symfony 5 and then start thinking about future work.
This is now in progress since we discussed it in detail with @stof and @alcaeus at #SymfonyHackday :blush:
This is great, as going forwards, it would allow people to use things like onPropertyChanged listeners, that are in the dbal, without having to use the meaty ORM dependency.
Most helpful comment
This is now in progress since we discussed it in detail with @stof and @alcaeus at #SymfonyHackday :blush:
https://github.com/doctrine/dbal-bundle