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

Correct Entity.load() docs RE null #188

Open kentr opened 8 years ago

kentr commented 8 years ago

The README is incorrect regarding the return value of Entity.load() / EntityName.load().

The function doesn't return null in any case. Instead (like Entity.findBy()), if the object is not found it executes the callback function with null as input.