doctrine / orm

Doctrine Object Relational Mapper (ORM)
https://www.doctrine-project.org/projects/orm.html
MIT License
9.93k stars 2.51k forks source link

Collections as first class members #6311

Open backbone87 opened 7 years ago

backbone87 commented 7 years ago

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/

Ocramius commented 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.