-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable relationship's mappedKeyName.[0-9] #1169
Conversation
enable relationship's mappedKeyName.[0-9] 使关系映射真正支持mappedKeyName.[0-9] ,以支持多重key path映射.
修复导入时, 关系映射无法有效指定多个keypath的bug.
fixed relationship's mappedKeyName.[0-9] Invalid
修复导入时, 关系映射无法有效指定多个keypath的bug.
fixed relationship's mappedKeyName.[0-9] Invalid
/* 往relationship中导入数据时,要适当适时删除原来的数据: 如果目标实体没有设置模拟主键"relatedByAttribute",就删除此relationship下所有的目标实体对象,以避免引入不必要的冗余数据. */
往relationship中导入数据时,要适当适时删除原来的数据
The tests should be fixed in I'm really not sure what this PR is fixing — could you explain it in some detail please? Also, would you mind updating the comment you've added in this PR to be in English? Thanks! |
https://github.com/magicalpanda/MagicalRecord/blob/master/Docs/Importing-Data.md,As the Doc says:"Relationships mappedKeyName.[0-9] String Specifies backup keypath names if the key specified by mappedKeyName doesn't exist. Supports the same syntax."; But It Not works Actually!The reason is the original code do nothing when |
"往relationship中导入数据时,要适当适时删除原来的数据: |
I knew u come China, and I think u Chines maybe well! |
@ios122 can you change your code comment to English? |
A clearer pull request is now available at #1228. |
enable relationship's mappedKeyName.[0-9] 使关系映射真正支持mappedKeyName.[0-9] ,以支持多重key path映射.