Skip to content

Commit 96c7d30

Browse files
committed
Add attributes key to PersistedProductAttribute to use in associations
1 parent 794dca7 commit 96c7d30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/Sources/Storage/GRDB/Model/PersistedProduct.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ extension PersistedProduct: FetchableRecord, PersistableRecord {
8484
using: PersistedProductImage.image)
8585

8686
public static let attributes = hasMany(PersistedProductAttribute.self,
87+
key: "attributes",
8788
using: ForeignKey([PersistedProductAttribute.CodingKeys.siteID.stringValue,
8889
PersistedProductAttribute.CodingKeys.productID.stringValue],
8990
to: primaryKey))

0 commit comments

Comments
 (0)