Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB Driver issue #478

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmitov
Copy link

@dmitov dmitov commented Jul 19, 2018

There is an issue when calling the MongoDB connection outside of models, which returns the data in an array-like format.

array:4 [▼
  "_id" => ObjectId {#1320 ▶}
  "identifier" => "5ace56e3f04705104e791d82"
  "instance" => "default"
  "content" => "O:29:"Illuminate\Support\Collection":1:{s:8:"\x00*\x00items";a:1:{s:32:"66afafbaabfae38bb9f68e8be9e509a8";O:32:"Gloudemans\Shoppingcart\CartItem":8:{s:5:"rowId" ▶"
]

This issue is not present on default MySQL driver.

By utilizing Laravel's data_get helper, we can easily add support for MongoDB and perhaps any other NoSQL database.

@sbourdette
Copy link

I confirm that with this commit Mongodb driver works

bumbummen99 added a commit to bumbummen99/LaravelShoppingcart that referenced this pull request Dec 28, 2018
Add changes from Crinsane#349
Add changes from Crinsane#478
This was referenced Jun 26, 2019
Closed
hardevine added a commit to hardevine/LaravelShoppingcart that referenced this pull request May 26, 2021
Fix MongoDB Driver issue Crinsane#478
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants