dflourusso / expo-sqlite-orm

Expo SQLite ORM
139 stars 34 forks source link

Defaults only work with `new` then `save`, not `create` #33

Open wasabigeek opened 4 years ago

wasabigeek commented 4 years ago

This wasn't clear from the README, I'm wondering if it's intentional? Would be happy to PR a change in README if so, or attempt to add this feature otherwise.

dflourusso commented 4 years ago

I will check, probably it's a bug

wasabigeek commented 4 years ago

I think create attempts to insert the given obj directly, whereas setProperties only defines the defaults within the constructor or on save

angelxmoreno commented 1 year ago

@dflourusso anything wrong with this PR?