laravel-mongodb
laravel-mongodb copied to clipboard
A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)
- Laravel-mongodb Version: ```json "jenssegers/mongodb": "^3.9", "laravel/lumen-framework": "^9.0" ``` - PHP Version: ```json "php": "^8.0", ``` - Database Driver & Version: ```json "mongodb/mongodb": "^1.12.0", ``` ```text MongoDB shell version 4.4.13...
Fix `sync()` method not handling properly single model's instances passed via `$ids` argument
- Laravel Version: 9.13.0 - Laravel-mongodb Version: 3.9.0 - PHP Version: 8.0.17 - Database Driver & Version: MongoDB PHP, v5.0.6 ### Description: When passing a model instance to a `syncWithoutDetaching()`...
Hello everyone, i stumbled on this issue today: When i try to use laravel's transactions like this ``` DB::transaction(function() use($data) { $this->repository->create($data); }); ``` I get the following: ``` Call...
- Laravel-mongodb Version: 3.9.0 - PHP Version: 8.1.3 - Database Driver & Version: irrelevant (not a database issue) ### Description: Attribute accessors not working when accessor method is one word...
Fixes #2199 , #1580
- Laravel-mongodb Version: 3.9.0 - PHP Version: 8.0.2 - Database Driver & Version: MongoDB community version 5.0 ### Description: I've chosen Mongo DB as a database for my Laravel project...
How can we retrieve the size of an array in the `get()` function? Update: Ultimately, I want to get the size of the array column for each qualified document Example,...
requires mongodb version V4.0 or more and deployment replica sets or sharded clusters transaction support create/insert,update,delete,etc operation Supports infinite-level nested transactions, but outside transaction rollbacks do not affect the commit...
I have a PurchaseRequest (like a Cart) and inside I have products... ``` { "id": "62862f04375eed096c6abc32", "products": [ { "id": "628667dccee1aa7afe760d24", "currency": "MXN", "unit_cost": 10, "product_id": 1, "quantity": 1, "metadata":...