Prevent infinite loop for ORM that does not clear changes before after callbacks