Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

CloudEntity.setId("...") doesn't work #12

Open
Gyroscope07 opened this issue Apr 24, 2014 · 1 comment
Open

CloudEntity.setId("...") doesn't work #12

Gyroscope07 opened this issue Apr 24, 2014 · 1 comment

Comments

@Gyroscope07
Copy link

Using the above statement doesn't create an entity with the given ID. Instead, it just generates a random one.

@jcollomosse
Copy link

Hi. From what I've seen I think it does instantiate the CloudEntity with your requested ID, but when you then go do something with it e.g. insert it into the Backend, the Backend will create a new unique ID for the Entity which is random and is then returned to you by updating your CloudEntity on your client-side. I don't think you can force the creation of an ID like that. You can use setID to update an CloudEntity on the client-side, which is why it is useful i.e. for updating not for inserting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants