put PersistEntity constraint on right-hand side

This should reduce the need for the user to add
the PersistEntity constraint.

It was on the left side before
890ee388cada5937c393790f84ff0950d4f4b4c1