Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 852685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:38:18+00:00 2026-05-15T07:38:18+00:00

Example: I have a Department and an Employee. Department has a Nullify relationship to

  • 0

Example: I have a Department and an Employee. Department has a Nullify relationship to many Employees, and an Employee has an inverse relationship to one Department.

Now I remove the relationship to an Employee. So lets say the Marketing Department doesn’t link anymore to Joe Stevens.

1) Does Joe Stevens still link to the Marketing Department, when asking for his Department? Or is Core Data handling this automatically and also “nullifying” that?

2) Does it matter which delete rule is specified on the side of the Employee? Let’s say that was Cascade. The Department removed the relationship to the Employee. I believe the delete rule of the Employee is not relevant in this case, right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:38:19+00:00Added an answer on May 15, 2026 at 7:38 am

    The delete rule govern what happens to the object at the other end of the relationship when the object holding the rule itself is deleted.

    So:

    A<-(cascade)->>B
    B<<-(nullify)->A
    

    Deleting A causes the deletion of all related B. However, deleting any single one B simply causes A to forget about that particular B.

    So, the delete rule is always relevant to the object it is targeted at because the targeted object is the entire point of the delete rule. This is especially true when objects have multiple relationships.

    A<-(cascade)->>B
    B<<-(nullify)->A
    C<--(cascade,required)-->>B
    

    The C object will block the cascade deletion of any B objects it also holds regardless of what A wants. (A will nullify in that case.)

    You should not think of delete rules in terms of actual programming but rather in terms of the real world system you are trying to model. Think about the relationship of the real system and then set the delete rules to mimic those. In this case we would mimic the actually organizational rules of the company.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Two class: Department Task One department can have many tasks. One task can only
Let's say I have this script: $('.myDiv').click(function(){ $.getJSON('http://example.com/t.php', { department: 'department', manufacturer: '' }
I have 2 tables, emp, and dept(employee and department). Say I want to show
I have an ArrayCollection which has several employees and departments. Each employee belongs to
I have an Access application, in which I have an employee table. The employees
I have a contact form that has a dropdown to choose which department the
I have two tables - `employee` and `department`. 1. `employee` table contains column id,employee
I have a query SELECT d.name, count(e.id) FROM department d LEFT OUTER JOIN employee
I have two tables Employee and Department . I have joined with primary key
If I for example have <p> some long text </p> on my HTML page,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.