Shopware 6 Hidden Gems #6: Two state machine tricks — diagrams for free and forc...

@Schrank@phpc.social

Shopware 6 Hidden Gems #6: Two state machine tricks — diagrams for free and forcing ā€œimpossibleā€ transitions

Order states, delivery states, payment states — Shopware models all of them as state machines with defined transitions. Which is great, until a) a new colleague asks "so which states can an order actually be in?" and you start drawing boxes on a whiteboard, or b) an order gets stuck in a state it can't legally leave and you start writing UPDATE statements…

winkelwagen.de/2026/07/31/shop