An example of my data model version 1 looks like this:
The cake is eaten by some guests.
In data model version 2 not every guest will eat the same amount of pieces. I want to assign each guest an individual number of pieces:
(numberOfPieces
could be set to a default of 1 pieces.)
How can that be accomplished? I've implemented a custom mapping model and set a custom policy for the mapping CakeToCake
. However, I'm unsure what to do. Does my policy have to implement createRelationshipsForDestinationInstance:entityMapping:manager:error:
where I would manually create the PieceOfCake
object?