Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-21 Thread o...@ocs.cz
.com> > Cc: "webobjects-dev@lists.apple.com WebObjects" > <webobjects-dev@lists.apple.com> > Subject: Re: EOF inserts already existing M:N relationships/empty snapshot?!? > > Chuck, > > On 21. 9. 2016, at 6:10 AM, Chuck Hill <ch...@gevityinc.com> wro

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-21 Thread o...@ocs.cz
Chuck, > On 21. 9. 2016, at 6:10 AM, Chuck Hill wrote: > I bet Alice was a developer too. Beware the EOF, my son! The jaws that bite, the claws that catch! Looks like I have found the culprit — seems it was the very log of the committed snapshot. It looks like that if one

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-21 Thread Chuck Hill
v@lists.apple.com> Subject: Re: EOF inserts already existing M:N relationships/empty snapshot?!? Chuck, On 21. 9. 2016, at 6:10 AM, Chuck Hill <ch...@gevityinc.com<mailto:ch...@gevityinc.com>> wrote: I bet Alice was a developer too. Beware the EOF, my son! The jaws that bite, the claw

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-21 Thread o...@ocs.cz
...@ocs.cz> > Date: Tuesday, September 20, 2016 at 6:33 PM > To: Chuck Hill <ch...@gevityinc.com> > Cc: "webobjects-dev@lists.apple.com WebObjects" > <webobjects-dev@lists.apple.com> > Subject: Re: EOF inserts already existing M:N relationships/empty snapsh

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread Chuck Hill
c.com> Cc: "webobjects-dev@lists.apple.com WebObjects" <webobjects-dev@lists.apple.com> Subject: Re: EOF inserts already existing M:N relationships/empty snapshot?!? Chuck, On 21. 9. 2016, at 2:40, o...@ocs.cz<mailto:o...@ocs.cz> wrote:

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread OC
c: "webobjects-dev@lists.apple.com WebObjects" > <webobjects-dev@lists.apple.com> > Subject: Re: EOF inserts already existing M:N relationships/empty snapshot?!? > > Chuck, > > On 21. 9. 2016, at 2:40, o...@ocs.cz wrote: > > Aside of that, I have add

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread Chuck Hill
c.com> Cc: "webobjects-dev@lists.apple.com WebObjects" <webobjects-dev@lists.apple.com> Subject: Re: EOF inserts already existing M:N relationships/empty snapshot?!? Chuck, On 21. 9. 2016, at 2:40, o...@ocs.cz<mailto:o...@ocs.cz> wrote:

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread OC
Chuck, On 21. 9. 2016, at 2:40, o...@ocs.cz wrote: > Aside of that, I have added a log into the > DatabaseContextDelegate.databaseContextShouldUpdateCurrentSnapshot method, > and here I *never* get *anything* for the relationships: neither the old > (which is presumable) *nor the new*

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread o...@ocs.cz
Just a quick followup -- sorry, forgot to copy/paste the 2nd part of the log, though I fear it would not help much — it just confirms the user's snapshot does not get changed either: > On 21. 9. 2016, at 2:40 AM, o...@ocs.cz wrote: > > Chuck, > >> On 20. 9. 2016, at 10:48 PM, Chuck Hill

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread o...@ocs.cz
Chuck, > On 20. 9. 2016, at 10:48 PM, Chuck Hill wrote: > > This is why they are getting inserted again: > Well, logging out > "currentUser.editingContext().committedSnapshotForObject(currentUser)['userDataBlock']" > before saveChanges, I get an empty array. I must admit

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread Chuck Hill
; Subject: Re: EOF inserts already existing M:N relationships/empty snapshot?!? Samuel, On 21. 9. 2016, at 1:24, Samuel Pelletier <sam...@samkar.com<mailto:sam...@samkar.com>> wrote: Did you created the M:N relationship using the modeler or you created it manually ? Manually (

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread OC
Samuel, On 21. 9. 2016, at 1:24, Samuel Pelletier wrote: > Did you created the M:N relationship using the modeler or you created it > manually ? Manually (well through my own modeller, which boils down to precisely the same result). Nevertheless, I have done this umpteen

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread Samuel Pelletier
OC, Did you created the M:N relationship using the modeler or you created it manually ? These are tricky to correctly configure. Your situation may be caused by an improper flattened relationship settings. The flattened relationships should have nothing checked in the Advanced pane of the

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread Chuck Hill
This is why they are getting inserted again: Well, logging out "currentUser.editingContext().committedSnapshotForObject(currentUser)['userDataBlock']" before saveChanges, I get an empty array. I must admit I don't know whether there should be the relationship objects in this snapshot, but