title: Save Entity without Relationship in Swift Core Data
body: <p>I'm working an a simple soccer application right now. This is how my (simplified) Core Data model looks like:</p>
  
  <p><strong>Game entity:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/99A69.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/99A69.jpg" alt="Game entity"></a></p>
  
  <p><strong>Team entity:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/evqg7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/evqg7.jpg" alt="Team entity"></a></p>
  
  <p><em>Generally: I know that the inverse relationships are missing. This has nothing to do with my question but I somebody knows hat to do these: Please tell me ;)</em></p>
  
  <p><strong>EXAMPLE SCENARIO:</strong> </p>
  
  <p>I create a new Game with date (not important) and set <em>home</em> to a team with the name "Team A" and <em>away</em>  to a team with the name "Team B". Works fine.</p>
  
  <p>When I edit the name of "Team A", the name of the home team of the games changes, too. Of course it does, it's a relationship. </p>
  
  <p>But this is not what I want it do do because once I've created a game, it shouldn't change the data. </p>
  
  <p>I thought of moving the home and away data to a attribute of the Game entity but I can't set the type to Team.</p>
  
  <p><strong>MY QUESTION:</strong></p>
  
  <p>Is it possible to create a kind of copy of a Team object and save it to the Game object? It should be independent from the Team object in the database and represent a "static copy". </p>