Sharing a whole entity hasn't been the best idea. But pre-creating the metadata info slots should always be possible. Of course inverse relationships won't usually be set as that requires the model resolution context.
E.g. this:
@Model class Person: NSManagedObject {
var firstname : String
var lastname : String
}
Sharing a whole entity hasn't been the best idea. But pre-creating the metadata info slots should always be possible. Of course inverse relationships won't usually be set as that requires the model resolution context.
E.g. this:
would generate sth like:
(this is actually not true, this specific static type is detected by MM :-), but to illustrate the point). Instead we should do:
The prototypes in the metadata are always copied already, before they are added to an entity.