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/