我得到一個錯誤,指出:如何建立逆實體
the model used to open the store is incompatible with the one used to create the store.
我試圖創建一個實體:Category
有類別和鏈接到包含在實體模式不同的視圖控制器:Clothes
,與類別名稱有關。我應該讓實體:Category
母公司到Clothes
?當我這樣做,我得到一個錯誤:
Category.dateCreated conflicts with a property inherited from Clothes. Both entities contain an attribute named: dateCreated.
而且我將如何讓關係:clothes
在Category
實體= NSSet
?例如:
/用戶/邁克爾/桌面/屏幕在38年9月10日拍攝2016年3月5日AM.png
/用戶/邁克爾/桌面/屏幕截圖2016年3月5日在10.03
@NSManagedvar clothes: NSSet
.29 AM.png
您的圖片未附加到問題中。您可以編輯您的問題並使用編輯器窗口頂部的圖像按鈕來附加它們。 – stevekohls