This is already done by D8, so probably worth checking how complex + the benefits it would bring. Currently not sure if we want to take that path. http://symfony.com/doc/current/reference/constraints.html