• 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
inheritance and delete rules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

inheritance and delete rules


  • Subject: inheritance and delete rules
  • From: Jonathan Rochkind <email@hidden>
  • Date: Mon, 5 Apr 2004 12:28:42 -0500

I have some entities that I'll call Department and Person. Person has two sub-entities, BluePerson and GreenPerson.

There is a relationship from Department directly to one of the sub-entities only (not to the superentity), BluePerson, called "bluePersons". There is a relationship from the super-entity Persons to Department, called "department", with a "nullify" delete rule. Of course this relationship is 'inherited' by the two sub-entities.

If I delete a BluePerson, I'd expect the delete rule "nullify" to be followed, and this BluePerson should no longer be in the Department's "person" relationship. That's certainly the way it works when inheritance is not involved. But.... the delete rule does not seem to be respected; I've deleted a BluePerson, but the deleted EO (with all of it's attributes 'null' and a null editingContext(), as you'd expect from a deleted EO) is still listed in the Departments "persons" relationship.

Is there a known bug with inheritance and delete rules? Have I discovered a new bug? Is there something else going on, which isn't a bug at all? Maybe becauase my relationships aren't really "inverse" (one is defined from Department only to the sub-entity BluePerson, one is defined from teh super entity Person to Department), the delete rules can't be followed properly. What should I do in this case? Do I just need to manually remove the thing from the relationship before I delete it? Is there any better way to handle this?

--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.


  • Follow-Ups:
    • Re: inheritance and delete rules
      • From: Anjo Krank <email@hidden>
  • Prev by Date: Help please
  • Next by Date: Re: How to populate WOPopupButtons without excuting Submit button action method
  • Previous by thread: Re: Help Please
  • Next by thread: Re: inheritance and delete rules
  • Index(es):
    • Date
    • Thread