You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempt to store a new PaymentMethod for an Organization:
$organization->paymentMethods()->create($params);
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.
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.
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.
The text was updated successfully, but these errors were encountered: