updated generators due to changes in Symfony 2.3