diff --git a/addon/-private/system/model/model.js b/addon/-private/system/model/model.js index 04d99e4a602..f1341fb241a 100644 --- a/addon/-private/system/model/model.js +++ b/addon/-private/system/model/model.js @@ -1322,7 +1322,7 @@ Model.reopenClass({ } else { //No inverse was specified manually, we need to use a heuristic to guess one if (propertyMeta.parentType && propertyMeta.type === propertyMeta.parentType.modelName) { - warn(`Detected a reflexive relationship by the name of '${name}' without an inverse option. Look at https://emberjs.com/guides/models/defining-models/#toc_reflexive-relation for how to explicitly specify inverses.`, false, { + warn(`Detected a reflexive relationship by the name of '${name}' without an inverse option. Look at https://guides.emberjs.com/current/models/relationships/#toc_reflexive-relations for how to explicitly specify inverses.`, false, { id: 'ds.model.reflexive-relationship-without-inverse' }); } @@ -1337,7 +1337,7 @@ Model.reopenClass({ }); assert("You defined the '" + name + "' relationship on " + this + ", but you defined the inverse relationships of type " + - inverseType.toString() + " multiple times. Look at https://emberjs.com/guides/models/defining-models/#toc_explicit-inverses for how to explicitly specify inverses", + inverseType.toString() + " multiple times. Look at https://guides.emberjs.com/current/models/relationships/#toc_explicit-inverses for how to explicitly specify inverses", filteredRelationships.length < 2); if (filteredRelationships.length === 1 ) { @@ -1345,7 +1345,7 @@ Model.reopenClass({ } assert("You defined the '" + name + "' relationship on " + this + ", but multiple possible inverse relationships of type " + - this + " were found on " + inverseType + ". Look at https://emberjs.com/guides/models/defining-models/#toc_explicit-inverses for how to explicitly specify inverses", + this + " were found on " + inverseType + ". Look at https://guides.emberjs.com/current/models/relationships/#toc_explicit-inverses for how to explicitly specify inverses", possibleRelationships.length === 1); inverseName = possibleRelationships[0].name; diff --git a/tests/integration/inverse-test.js b/tests/integration/inverse-test.js index d2881b9dd23..2656594cee7 100644 --- a/tests/integration/inverse-test.js +++ b/tests/integration/inverse-test.js @@ -109,7 +109,7 @@ testInDebug("Errors out if you define 2 inverses to the same model", function(as assert.expectAssertion(() => { User.inverseFor('job', store); - }, "You defined the 'job' relationship on user, but you defined the inverse relationships of type job multiple times. Look at https://emberjs.com/guides/models/defining-models/#toc_explicit-inverses for how to explicitly specify inverses"); + }, /^You defined the 'job' relationship on user, but you defined the inverse relationships of type job multiple times/i); });