Closed cheems77 closed 4 years ago
Hi @cheems77 I am stuck too with this. I tried with filter function. But everytime I filter on the embed document I lose the main collection's fields. I think now I will try with a Raw Expressions.
Any update on this? Dealing with the same problem... I also tried solving by adding a where condition to the EmbedsMany, but it throws an Exception: "... must return a relationship instance." I am using L5.5 with laravel-mongodb v3.3
Hi @aowie1 in the end I have realized that is not a simple implementation and not so useful. Infact I always keep the "delete data" in the master model.
As referenced in Issue #422
I'm working with version 3.2 of this package and Laravel 5.5 and there doesn't appear to be a resolve.
The deleted_at attribute is set to false using the Jenssegers\Mongodb\Eloquent\SoftDeletes trait but queries still return documents where
deleted: true