I just change the primaryKey name. And start getting this error. Now, I changed the name of Model from Pagination to Paginate, everything is working fine. There must be some caching strategy that is causing this bug.
Describe the bug
TypeError: attr.setKey is not a function
at Pagination.$fillField (index.mjs:1609:98)
at Pagination.$fill (index.mjs:1586:27)
at new Model (index.mjs:1383:18)
at new Pagination (Pagination.js:4:16)
at Pagination.$newInstance (index.mjs:1542:12)
at Query.checkAndGetSTI (index.mjs:749:70)
at Query.hydrate (index.mjs:738:93)
at Query.saveElements (index.mjs:643:120)
at Query.save (index.mjs:632:13)
at Repository.save (index.mjs:966:25)
Getting the above error. The model is as shown below:
Environment
Darwin
v16.15.0
0.0.0
-
npm@8.5.5
webpack
-
-
-
Reproduction
I just change the primaryKey name. And start getting this error. Now, I changed the name of Model from Pagination to Paginate, everything is working fine. There must be some caching strategy that is causing this bug.
Describe the bug
Getting the above error. The model is as shown below:
At first, it was working fine and then it start throwing this error. Not sure what is causing the error.
Additional context
If there is some caching strategy, we can remove the cache on server restart or on some sort of watchdog event.
Logs
No response