Open trip-somers opened 1 year ago
Did you ever figure this out? Running into a similar issue.
Nope. We wound up using a MongoDB anti-pattern and putting the PaymentMethod model in its own table. I have avoided using this package when I can. I assume there's a fork out there somewhere that fixes this, but I haven't looked for it yet.
Did you ever figure this out? Running into a similar issue.
It works when you use create or update but not with save.
Description:
Attempting to store an embedded model via the embedsMany relationship results in an incorrect query causing the store to fail.
Steps to reproduce
Expected behaviour
A PaymentMethod document is embedded within the Organization document.
Actual behaviour
The following operation is executed. It tries to find an Organization with a PaymentMethod ID that matches the Organization's _id, creating an impossible condition.