name = "" @objc dynamic var age = 0 let dogs = LinkingObjects(fromType: Dog.self, property: "owner") } [email protected] @objcMembers class Dog: Object, Codable { dynamic var name = "" dynamic var age = 0 dynamic var owner: Person? }
name = "" @objc dynamic var age = 0 let dogs = LinkingObjects(fromType: Dog.self, property: "owner") } [email protected] @objcMembers class Dog: Object, Codable { dynamic var name = "" dynamic var age = 0 dynamic var owner: Person? }
name = "" dynamic var age = 0 dynamic var owner: Person! let owners = LinkingObjects(fromType: Person.self, property: "dogs") } @objcMembers class Person: Object { dynamic var name = "" dynamic var age = 0 dynamic var birthdate = Date() let dogs = List<Dog>() }