Open
Description
Feature Request
Q | A |
---|---|
New Feature | yes |
RFC | no |
BC Break | no |
Summary
I learned about this pattern when searching about when/what to embed etc. and I think it could be a great addition to doctrine-odm.
I'm not sure how it could be implemented yet but having an Attribute #[SubSet(number:5, sort: DESC)]
in addition to an attribute #[ReferenceMany]
to store the 5 most recents referenced directly on an embed could reduce read operation on the db.
I learned about this pattern on the mongodb website here and here