ORM API throws an exception if saving fails