Core Data - One Entity has an array of another Entity Swift

Viewed 27

I have two entities, within the first entity there is an attribute array of entity 2. how to deal with (array of entity 2) in core data.

Entity 1: var id: Int, var name: String, var subArray: [Entity 2]

Entity 2: var id: Int, var details: String

enter image description here enter image description here

0 Answers
Related