title: Core Data And Retain Cycles
body: <p>I have a core data class Game which has a to-many relationship to another class Player. This is what their headers look like</p>
  
  <pre><code>@property (nonatomic, retain) NSSet * players; // In Game.h
  @property (nonatomic, retain) Game * game; // In Player.h (the inverse relationship)
  </code></pre>
  
  <p>When I am releasing the last external reference that I have to the Game class, didTurnIntoFault is not being called. Now, my question is that could this be due to the cyclic reference created above (As you can see, both the properties are 'retain'), or does core data manage all that and the problem is somewhere in my code. </p>