note that i did not add the constraint for the locale. this is an unsolved issue with https://github.com/symfony-cmf/CoreBundle/pull/77 - not sure if we can add something to dynamically add or remove the validation for the locale.

but if no locale is specified, the phpcr-odm is just using the current one from the session so maybe we can just leave it out.