We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4db4836 + 24e6852 commit 967f790Copy full SHA for 967f790
src/Model.js
@@ -69,7 +69,7 @@ export default class Model extends StaticModel {
69
throw new Error('The object referenced on for() method is not a valid Model.')
70
}
71
72
- if (!this.isValidId(object.id)) {
+ if (!this.isValidId(object.getPrimaryKey())) {
73
throw new Error('The object referenced on for() method has a invalid id.')
74
75
@@ -294,4 +294,4 @@ export default class Model extends StaticModel {
294
}).then(response => response)
295
296
297
-}
+}
0 commit comments