xavierlacot / joli.js

joli.js is an Activerecord-like javascript ORM, particularly suited for being used in the Appcelerator Titanium Mobile framework.
MIT License
267 stars 60 forks source link

Changing if statements concerning the id of a table #13

Closed majmcdonald closed 12 years ago

majmcdonald commented 13 years ago

In case someone sets the id to 0 and wants to save/destroy it, this checks to see if the id is defined.