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.73k stars 240 forks source link

Using "1" as the entity id #71

Open xentek opened 12 years ago

xentek commented 12 years ago

I found that I couldn't set the id to "1" (i.e. a stringified version of the numeral one) as the primary key for an entity. Every operation that I tried would result in it seemingly being ignored.