diff --git a/src/model.js b/src/model.js index 313f447..8a93f96 100644 --- a/src/model.js +++ b/src/model.js @@ -343,10 +343,13 @@ fakeModel.prototype.findAndCountAll = function (options) { * to `false`. * * @instance + * @method findByPk + * @alias findById * @param {Integer} id ID of the instance * @return {Promise} Promise that resolves with an instance with the given ID **/ -fakeModel.prototype.findById = function (id) { +fakeModel.prototype.findById = +fakeModel.prototype.findByPk = function (id) { var self = this; return this.$query({