Issue #2976356 by phenaproxima, amateescu, Sam152: Add a validation constraint to check if an entity has a field