Skip to content

agopaul/doctrine2-state-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Doctrine 2 State Machine

State machines for Doctrine entities

Note: this lib is a work in progress. Nothing finished yet.

Why

State machines when used to enforce the workflow of DB records, need to be deeply integrated with the underlying DBMS in order to retain data integrity in a highly concurrency environment.

eg. Suppose you're working on an eCommerce with limited inventory, you wouldn't want to sell the same item to more than one person. That is why a state machine should adopt a locking strategy on the DB in order to prevent double state updates on the same record.

About

State machines for Doctrine entities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published