Changing Twig and Doctrine version
Refactoring some methods in Post entity