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
I used this as an example (thanks) to build a shipping method. However, I found that repeated saves of the method through the dashboard lead to one record for each attempt.
The fix is to use the same ORM mechanism as used in the bundled community store methods, ie:
It sounds like exactly the issue I observed, yes. The two changes fixed it for me. I'm a bit of a noob at this ORM stuff, but it does seem to be the case that it's easy to detach or unmerge an object from ORM, such as might happen when creating a new instance of the entity manager, and that leads to a new record being inserted.
I used this as an example (thanks) to build a shipping method. However, I found that repeated saves of the method through the dashboard lead to one record for each attempt.
The fix is to use the same ORM mechanism as used in the bundled community store methods, ie:
The text was updated successfully, but these errors were encountered: