Jul 6th, 2012, 05:51 PM
OK. Took me sometime, but I have managed to create a "sample" project, many parts from my real app. but the key parts to replicate. So I wrote a test, and while testing to get it to match, I saw something interesting. Now I say interesting because I don't want to just go out and call myself stupid. Especially, since there is still a possibility I am not. as in not stupid.
So, what i see at this moment, is that the Collection in discussion here is not "@Fetch"d and In looking at the var values, it appears the collection is empty. So of course an empty collection will always return false for remove().
And since I am almost 2 months since I first posted this, remembering back to that day, I am pretty sure that contains() still returned true for me. That was one of the tests I did back then. Split up my line into separate lines for contains and remove and that contains did return true. But contains still should have returned false, if the collection was empty back then.
But also in my test project, even though I am sure I save an ItemSignedUp for, it isn't showing up with my User, even if I use template.fetch(user.getItemsSignedUpForEvents());
I think I am going to zip up my files and post it to the Jira ticket I opened up which is DATAGRAPH-267, so I guess you beat me to it. Maybe there is still something to this, maybe it is just me.
Thanks for all your help.