This is not correct. Have a look at: http://symfony.com/doc/current/reference/constraints/Length.html