Resolve #321 - Fix transaction rollbacks when adding or updating an entity especially in regards to validation problems.