This error happend when we use a count function: example: model.countOtherModelRelated() Error: Cannot read property 'keyring' of undefined record = { count: 10 } //As Example record.contructor.options is undefined.