-
Type:
Improvement
-
Resolution: Duplicate
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
PHP Drivers
-
None
-
None
-
None
-
None
-
None
-
None
We are working on an existing application where the automatic conversion of id to _id for embedded collections is causing unexpected behavior. This creates challenges when dealing with legacy data and maintaining compatibility with our current application setup.
Sample document
{
"_id": {
"$oid": "6583b061537cb437e5104454"
},
"form_group": {
"id": {
"$oid": "64a776c2a95c541ec42b489e"
},
"name": "Ionyx test group",
},
"approver": {
"id": {
"$oid": "5d1d58dc911e699d594a8805"
},
"salutation": "Ms.",
"name": "Lara Garcia",
"mobile": "+6133333",
"email": "torig@gmail.com"
},
"company": {
"id": {
"$oid": "58c71e6c911e69f758f5b961"
},
"name": "Jostem"
},
"employee": {
"id": {
"$oid": "6482815886119b68746756c4"
},
"salutation": "Ms.",
"name": "Janee Doey",
"mobile": "+6100000",
"email": "test@gmail.com"
},
}
- duplicates
-
PHPORM-255 Options to ignore auto conversion id to _id
-
- Closed
-