Revert "No update constraint on  referring entity (#229)"

This reverts commit d2d5e9394d47f524efa1bcaa9e99c845d4215be2.