Skip to content

Commit

Permalink
Don't flush new entities on reload when the flush is false
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapac committed Oct 11, 2021
1 parent d246c91 commit 7a5902d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ abstract class EntityClass<ID : Comparable<ID>, out T : Entity<ID>>(val table: I
}
}
removeFromCache(entity)
return findById(entity.id)
return if (entity.id._value != null) findById(entity.id) else null
}

internal open fun invalidateEntityInCache(o: Entity<ID>) {
Expand Down

0 comments on commit 7a5902d

Please sign in to comment.