Symfony2: Using Validation Groups

http://richardmiller.co.uk/2012/06/15/symfony2-using-validation-groups/