You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Accessing parent properties of CoreStoreObject entity is prohibited? #507
I have a structure in may app where I have a parent object:
openclassBaseContact:CoreStoreObject{@Field.Stored("externalId")openvarexternalId:Int?@Field.Stored("isUser")openvarisUser:Bool=false
// Other props
}
A child and another entity:
finalpublicclassContact:BaseContact{
// Other props
@Field.Relationship("userDL",inverse: \DBS.UserDL.$contact)publicvaruserDL:DBS.UserDL?
// Other props
}finalpublicclassUserDL:CoreStoreObject{
// Other props
@Field.Relationship("contact")publicvarcontact:DBS.Contact?
// Other props
}
When trying to fetch Contact specifically by isUser property I get an error:
There's a different error but in the same vein: Operator function '~' requires the types 'Optional<DBS.Contact>.DestinationObjectType' (aka 'DBS.Contact') and 'FieldContainer<DBS.BaseContact>.Stored<Int?>.ObjectType' (aka 'DBS.BaseContact') be equivalent
changed the title [-]Accessing parent properties of `CoreStoreObject` is prohibited?[/-][+]Accessing parent properties of `CoreStoreObject` entity is prohibited?[/+]on Jun 26, 2024
Activity
[-]Accessing parent properties of `CoreStoreObject` is prohibited?[/-][+]Accessing parent properties of `CoreStoreObject` entity is prohibited?[/+]