Doctrine2 behavior adding a finite state machine in your entities.
The state machine implementation used is Finite.
Install the behavior adding kphoen/doctrine-state-machine
to your composer.json or from CLI:
$ php composer.phar require 'kphoen/doctrine-state-machine:@stable'
This behavior is released under the MIT license.