return model.collection().query(function (qb) {
    return qb.where({ id: id });
  }).fetchOne({
    withRelated: relations
  })['catch'](TypeError, function (e) {