Arrays replaces by objects to make it work with Symfony 2.5