{"issue":{"user":{"id":423776,"login":"ondrowan","url":"https://api.github.com/users/ondrowan","gravatar_id":"394087ac877df47e3b54f03fe97df063","avatar_url":"https://secure.gravatar.com/avatar/394087ac877df47e3b54f03fe97df063?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"title":"Repeated form type misbehaving when NotBlank is set","created_at":"2011-10-16T19:35:47Z","labels":[{"name":"Form","url":"https://api.github.com/repos/symfony/symfony/labels/Form","color":"d7e102"},{"name":"Validator","url":"https://api.github.com/repos/symfony/symfony/labels/Validator","color":"02e10c"}],"state":"closed","updated_at":"2011-12-22T16:18:06Z","id":1922922,"html_url":"https://github.com/symfony/symfony/issues/2413","closed_at":"2011-12-02T18:03:37Z","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"I have a password field set with NotBlank and MinLength constraints:\r\n\r\n```php\r\n/* \r\n * @Assert\\NotBlank()\r\n * @Assert\\MinLength(limit=8)\r\n */\r\nprotected $plainPassword;\r\n```\r\n\r\nAnd I want it to be repeated:\r\n\r\n```php\r\n$builder->add('plainPassword', 'repeated');\r\n```\r\n\r\nNow what happens:\r\n\r\n* when I don't type anything to any of the fields, I get `NotBlank` error\r\n* when I type in 2 same passwords shorter than 8 characters, I get `MinLength` error\r\n* when I type in 2 different passwords shorter than 8 characters, I get `NotBlank` **and** `repeated` errors\r\n* when I type in 2 different passwords with at least 8 characters, I get `NotBlank` **and** `repeated` errors\r\n\r\nWhat is the reason for showing also `NotBlank` error message when the two fields don't match? Is this a bug or feature?","number":2413,"url":"https://api.github.com/repos/symfony/symfony/issues/2413","comments":11,"assignee":null},"comment":{"user":{"id":439401,"login":"stof","url":"https://api.github.com/users/stof","gravatar_id":"7894bbdf1c05b18a1444ad8c76c9d583","avatar_url":"https://secure.gravatar.com/avatar/7894bbdf1c05b18a1444ad8c76c9d583?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-22T16:18:06Z","updated_at":"2011-12-22T16:18:06Z","id":3250819,"body":"I just created #2945 describing the more generic issue (this one being a specific case where it occurs). Closing it previously was probably a mistake using the wrong button but let's keep the generic issue","url":"https://api.github.com/repos/symfony/symfony/issues/comments/3250819"},"action":"created"}