• 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
Nullify rule not being invoked?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nullify rule not being invoked?


  • Subject: Nullify rule not being invoked?
  • From: Jonathan Rochkind <email@hidden>
  • Date: Mon, 08 Sep 2003 16:16:00 -0500

I have a weird situation where the nullify rule isn't being invoked.

Let's call the objects involved Department <->> Employee <->> and Project. Let's say they are all hiearchically defined, in terms of the delete rules. Department delete cascades to Employees cascades to Project. And 'nullify' in the opposite direction.

If I delete an Employee that does not have any Projects----then everythign works fine. The corresponding Department no longer has that Employee listed in it's employees() list. The nullify rule from Employee to Department worked fine. BUT. If I delete an Employee that DOES have one or more Projects---the Employee is deleted, the Projects are deleted (cascade from Employee to Project worked), but, the Department still has the now-deleted Employee listed in it's employees(). The nullify rule from Employee to Department did not work.

I'm probably just going to add a 'department().removeFromEmployees()' call in my logic prior to deleting the Employee. It's easier than trying to track down this bug, whether Apple's bug or mine. But that really shouldn't be neccesary. I wish I knew what was going wrong instead. Has anyone encountered this before?

--Jonathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: entity inheritance possibilities
  • Next by Date: Re: Comparing 2 Arrays if they have same objects
  • Previous by thread: Re: WO/HTML trick to check if page loaded completely?
  • Next by thread: Re: Nullify rule not being invoked?
  • Index(es):
    • Date
    • Thread