title: CoreData inverse question
body: <p>My understanding of an inverse relationship in CoreData is that these two statements should be equivalent:</p>
  
  <pre><code>[department addEmployee:employee];
  [employee setDepartment:department];
  </code></pre>
  
  <p>and that you only need to do one of them.</p>
  
  <p>However, if I do this:</p>
  
  <pre><code>[department addEmployee:employee];
  NSLog(@"%@",[employee department]);
  </code></pre>
  
  <p>It doesn't appear the the relationship was updated correctly.</p>
  
  <p>Doing it this way however, works fine:</p>
  
  <pre><code>[employee setDepartment:department];
  NSLog(@"%@",[employee department]);
  </code></pre>
  
  <p>I've also tried calling "processPendingChanges" on the context before the NSLog but it doesn't make a difference</p>