|Refreshing an entity with a reference to a cache-isolated entity has side-effects [message #1013426]
||Sat, 23 February 2013 16:23
| Sebastian Kienzl
Registered: July 2012
I've run into strange behaviour, which I want to discuss here before submitting a bug report.
I have an entity (called ItemList) that owns a collection of entities (called Entry).
Each of these Entry(s) refer to one entity (called Item) each in a non-owning way.
These Item(s) are cache-isolated i.e. have CacheIsolationType.ISOLATED set.
Now, if I refresh my ItemList and afterwards fetch the same ItemList in a different EntityManager, the references in Entry to its Item will be null!
If Item is not cache-isolated or if refresh isn't called, everything will work as expected.
I have prepared a minimal SE example, if someone feels like investigating.
P.S.: I'm using 2.5.0M7
[Updated on: Sat, 23 February 2013 16:24]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02057 seconds