- Issue created by @Abdelrahman khlefat
When processing recurring orders, the closeOrder() method may result in an EntityStorageException: The entity was modified while being edited (order version mismatch) under certain conditions. This typically happens when:
There are no clear Steps to reproduce since it's a race condition and doesn't always happen
Use loadForUpdate() on the order entity in closeOrder() immediately before initiating payment creation. This ensures:
Active
Code