Skip to content
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

无法自动保存嵌套的 pointer #494

Open
weakish opened this issue Sep 8, 2020 · 1 comment
Open

无法自动保存嵌套的 pointer #494

weakish opened this issue Sep 8, 2020 · 1 comment
Labels
next breaking changes

Comments

@weakish
Copy link
Contributor

weakish commented Sep 8, 2020

比如以下代码会出错:

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 weakish added the next breaking changes label Oct 20, 2020
@weakish
Copy link
Contributor Author

weakish commented Jul 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next breaking changes
Projects
None yet
Development

No branches or pull requests

1 participant