Shopware 6 Hidden Gems #6: Two state machine tricks ā diagrams for free and forc...
Schrank :shopware: š @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ā¦