• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOF inserts already existing M:N relationships/empty snapshot?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: EOF inserts already existing M:N relationships/empty snapshot?!?
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 21 Sep 2016 04:10:42 +0000
  • Thread-topic: EOF inserts already existing M:N relationships/empty snapshot?!?

I bet Alice was a developer too.

 

Have you overridden any of the EOF methods, or the generated methods in User or DataBlock and changed the normal behavior?  Or forgotten to call super?

 

From: OC <email@hidden>
Date: Tuesday, September 20, 2016 at 6:33 PM
To: Chuck Hill <email@hidden>
Cc: "email@hidden WebObjects" <email@hidden>
Subject: Re: EOF inserts already existing M:N relationships/empty snapshot?!?

 

Chuck,

 

On 21. 9. 2016, at 2:40, email@hidden 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* dictionary ever contain the “userDataBlocks” or “dataBlockUsers” key — not once.

 

well this one's weird, or I am missing something of importance here.

 

Meantime, I have played with another M:N, which works without a glitch (and which is modelled the same way as that one which does not, incidentally). Here, save-time, the snapshot does contain the proper related objects (and thus proper INSERTs are generated).

 

The weird thing is that these objects *do not* come into the snapshot through the DatabaseContextDelegate.databaseContextShouldUpdateCurrentSnapshot method! It logs all right when the object is fetched, but the new (nor the old, of course) dictionary does *not* contain the relationship key at all -- precisely the same way it is with that relationship which does not work properly!

 

Nevertheless, as mentioned above, save-time, the snapshot is all right. Couriouser and couriouser, Alice would say :-O

 

Thanks and all the best,

OC

 

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: EOF inserts already existing M:N relationships/empty snapshot?!?
      • From: "email@hidden" <email@hidden>
    • Re: EOF inserts already existing M:N relationships/empty snapshot?!?
      • From: "email@hidden" <email@hidden>
References: 
 >EOF inserts already existing M:N relationships/empty snapshot?!? (From: "email@hidden" <email@hidden>)
 >Re: EOF inserts already existing M:N relationships/empty snapshot?!? (From: Chuck Hill <email@hidden>)
 >Re: EOF inserts already existing M:N relationships/empty snapshot?!? (From: "email@hidden" <email@hidden>)
 >Re: EOF inserts already existing M:N relationships/empty snapshot?!? (From: OC <email@hidden>)

  • Prev by Date: Re: EOF inserts already existing M:N relationships/empty snapshot?!?
  • Next by Date: Re: EOF inserts already existing M:N relationships/empty snapshot?!?
  • Previous by thread: Re: EOF inserts already existing M:N relationships/empty snapshot?!?
  • Next by thread: Re: EOF inserts already existing M:N relationships/empty snapshot?!?
  • Index(es):
    • Date
    • Thread