implement SplObserver in StatefulEntity
fixed Transition constructor