Some dql optimization.
HomeTab optimization.
Merge pull request #477 from ngodfraind/doctrine-optimization

Doctrine optimization