diff --git a/lib/waterline-schema/joinTables.js b/lib/waterline-schema/joinTables.js index f2b557c..bcd31d0 100644 --- a/lib/waterline-schema/joinTables.js +++ b/lib/waterline-schema/joinTables.js @@ -203,7 +203,8 @@ JoinTables.prototype.buildTable = function(columns) { if(!table.connection) { var err = "A 'dominant' property was not supplied for the two collections in a many-to-many relationship. " + "One side of the relationship between '" + c1.collection + "' and '" + c2.collection + "' needs a " + - "'dominant: true' flag set so a join table can be created on the correct connection."; + "'dominant: true' flag set so a join table can be created on the correct connection " + + "and ensure that both models explicity have the connection set."; throw new Error(err); }