mongodb-odm
mongodb-odm copied to clipboard
The Official PHP MongoDB ORM/ODM
### Feature Request | Q | A |------------ | ------ | New Feature | yes | RFC | no | BC Break | no #### Summary See https://github.com/doctrine/mongodb-odm/pull/1856#discussion_r216758502. Index creation...
| Q | A |------------ | ------ | New Feature | yes | RFC | no | BC Break | no The query builder should allow queries like ``` ->field('memberships.organization')->references($organization)...
I would love to be able to compare fields with each other in a query without needing to fall back on javascript in the where operator. Since MongoDB 3.6+ we...
Hello everyone, In my application, I have a reference (One) between 2 entities: ```php namespace App\Document class Offer { /** * @MongoDB\ReferenceOne(targetDocument="Customer") */ protected $customer; } ``` When I want...
This was previously handled in #1086 for 1.x, but can't be done in 2.0 for repository methods (they are expected to return a cursor which no longer offers triggering a...
Ideally this was supposed to be implemented along with #1620 but it turned out that legacy driver does not support the feature. Scheduling this for 2.0 for when we'll be...
#1620 introduced the setting on a document level, it might make sense to allow setting read preference for fields holding references. Cross-referencing #1611 as an original issue.
The [schema validator](https://github.com/doctrine/mongodb-odm/pull/1519) seems like a cool new feature, but it could be more useful if it validates that field names do not conflict (are unique). This can't occur when...
I've got a property `$foo` on my document that holds a mutable object. That object is converted to an array by a custom type when persisting the document. Unfortunately, when...
Since custom collections can be converted to and from `array` it seems reasonable to support the `customCollection` attribute for types that represent an array such as `hash` and `collection`. When...