UniqueEntity constraint: add support for Single Table Inheritance