I encounter a problem when I migrate models.
Firstly, I had a user with an article. I made models like this:
Now, I made a second version for the models like this:
And in my AppDelegate, I call MagicalRecord.setupAutoMigratingCoreDataStack().
The migration works, but the article list on user is empty.
Does anyone know how to automatically set the list with the previous article set on user?


You should set relationship type on
useris "To many", and relationship type onarticleis "To one".This will provide you an One-many relationship on the database which means one user can have many articles.
For accessing array of articles in first user, use:
Or in all users: