coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.72k stars 239 forks source link

memory store destroyAll() doesn't work #182

Closed Papipo closed 4 years ago

Papipo commented 9 years ago

It seems that LocalQueryCollection clone method, which is used internally by the memory store destroyAll() method, will copy all _items thus, no item is ever deleted.