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

getAllItems() & query() #23

Closed
ghost opened this issue Jan 10, 2019 · 2 comments
Closed

getAllItems() & query() #23

ghost opened this issue Jan 10, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 10, 2019

Hello,

I copy/paste the entire project, then I just set my 4 application constants and create a Diet_Plans table with 2 objects with the name "Test1" and "Test2.

When I call getAllItems()
`void getAllItems() async {
var response = await DietPlan().getAll();

if (response.success) {
  for (var plan in response.result) {
    print(ApplicationConstants.APP_NAME + ": " + (plan as DietPlan).name);
  }
} else {
  print(ApplicationConstants.APP_NAME + ": " + response.error.message);
}

}`

In my terminal, there is :
I/flutter ( 4409): Hello Flutter: Test2 I/flutter ( 4409): Hello Flutter: Test2

The problem is that getAllItems returns 2 objects but two times the last.
(it's the same with query())

In advance, thank you for your help.

@phillwiggins
Copy link
Member

Hi,

I've just noticed this now. Was in the latest release, there was some work done around handling responses. Will fix ASAP and let you know.

@phillwiggins phillwiggins reopened this Jan 10, 2019
@ghost ghost changed the title Problem with getAllItems() from the example getAllItems() & query() Jan 10, 2019
@phillwiggins
Copy link
Member

All fixed. Objects now need to implement ParseCloneable

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

No branches or pull requests

1 participant