XML validation code needs constraint-mapping element

Missing XML information causes errors, has been been problematic for a while. See link for example: http://vvv.tobiassjosten.net/symfony/symfony2-validation-in-xml/
Merge pull request #2678 from Incognito/patch-1

XML validation code needs constraint-mapping element