@@ -290,7 +290,7 @@ export default class Model extends Base {
290290 for ( const prop of Reflect . ownKeys ( where ) ) {
291291 if ( ! Reflect . ownKeys ( this . meta . attributes ) . includes ( prop ) ) {
292292 throw new Error ( `
293- Invalid key '${ prop } ' defined on 'where' given to 'Model.deleteSome '.
293+ Invalid key '${ prop } ' defined on 'where' given to 'Model.deleteOne '.
294294 Included properties must be defined on model class
295295 Valid properties '${ Reflect . ownKeys ( this . meta . attributes ) . join (
296296 "', '"
@@ -354,7 +354,7 @@ export default class Model extends Base {
354354 for ( const prop of Reflect . ownKeys ( props ) ) {
355355 if ( ! Reflect . ownKeys ( this . meta . attributes ) . includes ( prop ) ) {
356356 throw new Error ( `
357- Invalid key '${ prop } ' defined on 'props' given to 'Model.updateAll '.
357+ Invalid key '${ prop } ' defined on 'props' given to 'Model.updateOneById '.
358358 Included properties must be defined on model class
359359 Valid properties '${ Reflect . ownKeys ( this . meta . attributes ) . join (
360360 "', '"
@@ -370,7 +370,7 @@ export default class Model extends Base {
370370 for ( const prop of Reflect . ownKeys ( where ) ) {
371371 if ( ! Reflect . ownKeys ( this . meta . attributes ) . includes ( prop ) ) {
372372 throw new Error ( `
373- Invalid key '${ prop } ' defined on 'where' given to 'Model.updateSome '.
373+ Invalid key '${ prop } ' defined on 'where' given to 'Model.updateOne '.
374374 Included properties must be defined on model class
375375 Valid properties '${ Reflect . ownKeys ( this . meta . attributes ) . join (
376376 "', '"
@@ -382,7 +382,7 @@ export default class Model extends Base {
382382 for ( const prop of Reflect . ownKeys ( props ) ) {
383383 if ( ! Reflect . ownKeys ( this . meta . attributes ) . includes ( prop ) ) {
384384 throw new Error ( `
385- Invalid key '${ prop } ' defined on 'props' given to 'Model.updateSome '.
385+ Invalid key '${ prop } ' defined on 'props' given to 'Model.updateOne '.
386386 Included properties to update must be defined on model class
387387 Valid properties '${ Reflect . ownKeys ( this . meta . attributes ) . join (
388388 "', '"
0 commit comments