Issue #2272161 by tim.plunkett, fago: Entity-based conditions should use type => entity: instead of constraints.