QueryCollection list method undefined

51 views
Skip to first unread message

Nate Dudenhoeffer

unread,
Aug 16, 2014, 6:27:46 PM8/16/14
to persis...@googlegroups.com
I just put persistencejs into a new project and am getting an error when I call myEntity.all().list(null, function()...)

myEntity.all() returns a AllDbQueryCollection, but it does not have the "list" or "count" properties. I have another project using persistence, and I can see that these should be present on the QueryCollection inside the prototype. However, in this case when I drill down to the QueryCollection it has no properties.

Any ideas on what might be causing this?

I am using the websql backend, and have confirmed that the database has been created. At this point there is no data in it, but the tables exist.


Zef Hemel

unread,
Aug 19, 2014, 8:47:41 AM8/19/14
to persis...@googlegroups.com
This is really odd. If you have another project where it does work, can you figure out what's different in this one?

-- Zef


--
You received this message because you are subscribed to the Google Groups "persistence.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to persistencej...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nate Dudenhoeffer

unread,
Aug 27, 2014, 6:57:01 AM8/27/14
to persis...@googlegroups.com
Zef, thanks for the response.

I had inadvertently put my database initialization code in a "ready" callback, and was trying to execute the query before that completed.
Reply all
Reply to author
Forward
0 new messages