python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

无法自动保存嵌套的 pointer

Open weakish opened this issue 5 years ago • 1 comments

比如以下代码会出错:

Author = leancloud.Object.extend('Author')
author = Author()
author.name = "Bob"

Post = leancloud.Object.extend('Post')
post = Post()
post.set('title', 'hugry')
post.set('content', 'where to eat')
post.set('author', author)

Comment = leancloud.Object.extend('Comment')
comment = Comment()
comment.set('content', 'KFC')

comment.set('parent', post)

comment.save()

JavaScript SDK 支持保存这种嵌套的 pointer

weakish avatar Sep 08 '20 08:09 weakish

类似地,文件也不会像 JavaScript 一样自动保存。

weakish avatar Jul 06 '21 09:07 weakish