Closed ryougifujino closed 5 years ago
openrecord will load the available fields from your table automatically.
If you overwrite them via this.attribute()
they wont be synced to the database anymore (except you specify the writable
option.
So in your example. just remove the static definition()
method of your model and everything should be fine.
btw: store.ready()
will call store.connect()
unless you set the store autoConnect
option to false
.
thanks for replying
When I executed this script, I got result on the console:
But I got null in database.
And after I commented the two lines:
The result seems perfect:
But why?