Fix MaxLength for Symfony 2.3~