Fixes #80 where an exception is thrown when deleting a user entity that created/updated/deleted other entities