Prevent Duplicate Aliases in Associations (#7025)
* rewrite logic for finding associations * update and add new error messgaes and change existing tests to match * remove comments * tighten up code for getting associations and keep support for node4 * create SequelizeEagerLoadingError * remove spaces * added some happy path unit tests for _getIncludedAssociation * updated the change log * remove only * associations with duplicate aliases are not allowed * add semi-colon * place hasAlias in more sensible locatio * added hasAlias tests * added association tests for duplicate aliases * remove unused require * update changeload * small formatting changes * add missing parameter * remove some basic setup from each association and add to constructor * add regression tests for improperly constructed belongsToMany associations * use single quote strings and small const fix * eslint fixes * small refactor * jshint promise expception added
Showing
with
152 additions
and
75 deletions
test/unit/associations/association.test.js
0 → 100644
test/unit/model/helpers.test.js
0 → 100644
-
Please register or sign in to post a comment