Fixed doctrine entity validation errors, codestyle fixes
(cherry picked from commit 0cdbc78)
Merge pull request #8 from boda2004/doctrine-validation

Fixed doctrine entity validation errors, codestyle fixes (cherry picked from commit 0cdbc78)