Bugfix wrong use of Doctrine.