关于mapKeyPath的问题
我正在关注 https://github.com/ 上的 Restkit 教程RestKit/RestKit/blob/master/Docs/Object%20Mapping.md 这非常好,因为我认为 RestKit 是一个非常酷的框架。
只有一点我不明白。文档中有一行“文章”,但我看不到文章是在哪里声明的以及它来自哪里。
// Define the relationship mapping [article mapKeyPath:@"author"
toRelationship:@"author" withMapping:authorMapping];
有人可以给黑暗带来一些光明吗?
这是关于如何处理嵌套的 1:n 关系的正确区域吗?
I am following the Restkit Tutorial on https://github.com/RestKit/RestKit/blob/master/Docs/Object%20Mapping.md and this is pretty good because RestKit is a really cool framework - I think.
There is just one point I don't get. In the documentation is a line with "article" but I cannot see where article is declared and where it comes from.
// Define the relationship mapping [article mapKeyPath:@"author"
toRelationship:@"author" withMapping:authorMapping];
Can someone give some light into the darkness?
Is this the right area on how to handle 1:n relationships that are nested?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该行应该是:
wiki 上的更新文章进行了更正。
The line should be:
The updated article on the wiki has the correction.