We have discovered recently that when a record is persisted and not refetched Ideablade attempts to insert the record a second time. Of course this fails with a PrimaryKey violation. Debugging this shows that the row state of the newly inserted record does not change hence the reason a second attempt is made to insert the record.
Is this expected behaviour? Or are we doing something wrong? Is there a way to get around this?