ERXFetchSpecificationBatchIterator : Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext

2009-03-02 Thread Simon McLean
I've got a bizarre error that I'm struggling to debug. Wondering if anyone can give me a point in the right direction...? I've got a pretty boring fetch spec, and if i call this: NSArray batch = ec.objectsWithFetchSpecification(fs); ... i get an array of objects. No issue. But I've been worki

Re: ERXFetchSpecificationBatchIterator : Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext

2009-03-02 Thread Lachlan Deck
On 02/03/2009, at 10:46 PM, Simon McLean wrote: I've got a bizarre error that I'm struggling to debug. Wondering if anyone can give me a point in the right direction...? I've got a pretty boring fetch spec, and if i call this: NSArray batch = ec.objectsWithFetchSpecification(fs); ...I decid

Re: ERXFetchSpecificationBatchIterator : Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext

2009-03-03 Thread Simon McLean
Hi Lachlan - Thanks for the tips. We did a **lot** of messing with this and simply couldn't get it to work, but we have now fixed it with a bit of a code reshuffle. Basically, we were doing all this stuff in a thread that was fired off during willInsert(). we've now changed it so that willInsert j

Re: ERXFetchSpecificationBatchIterator : Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext

2009-03-03 Thread Lachlan Deck
On 04/03/2009, at 5:45 AM, Simon McLean wrote: i guess we were breaking one of the wo-commandments somewhere in there, but i've been through it over and over again and can't see where the second ec was getting created. Probably the willInsert's object's ec which still has the lock? with r