Uploaded image for project: 'PHP ORMs'
  1. PHP ORMs
  2. PHPORM-255

laravel-mongodb - Issue #3184: [Feature Request] Options to ignore auto conversion id to _id

    • Type: Icon: Question Question
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Laravel

      kbiits has created Issue #3184: [Feature Request] Options to ignore auto conversion id to _id in laravel-mongodb. This Jira ticket was filed by GromNaN

      Issue Text:

      Is your feature request related to a problem?

      We have a `merchant.id` field in our mongodb document, and after upgrading to mongodb driver 5.1 we encountered issue that mongodb driver modify the where query from `merchant.id` to `merchant._id` which results to unexpected query

      Describe the solution you'd like

      It would be good if there's mechanism to whitelisting the fields from auto conversion `.id` to `._id`

      Describe alternatives you've considered

      -

      Additional context

      This part of code modify all `.id` to `._id`
      <img width="931" alt="image" src="https://github.com/user-attachments/assets/c4aba8a0-aa18-4098-96e7-2134b6eed26b">

            Assignee:
            Unassigned Unassigned
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: