UniqueEntity constraint: Add support for Single Table Inheritance