Open backbone87 opened 7 years ago
The idea is neat, but the collection API as it currently is is too limited, because it only allows adding operators via decorators, and we currently have issues with the criteria API in keeping said API in sync between ORM and Common.
I would probably not use doctrine/collections
for that, but rather a more flexible and functional-oriented library instead.
This is just some quick thought that came to my mind: Collections as first class members. I post it to get some feedback.
This issue is just a grand view of how things could be done when dealing with collections, but some features may be useful on its own.
https://ocramius.github.io/blog/doctrine-orm-optimization-hydration/