completed Doctrine migration of workflows classes, minor cs fixes
Merge pull request #2120 from Guite/1.4

completed Doctrine migration of workflows classes, minor cs fixes