Repository navigation
Conversation
|
Does this in any way relate to #15599 ? |
|
Not directly, that PR was about preventing the same model from being initialized twice (calling This PR is about registering two different models that have the same model name Unsurprisingly, this change breaks many of our tests because the unit test suites define their models outside of |
|
@ephys I actually tried to use the |
|
This will definitely require a good amount of refactoring as all model definitions in unit tests will need to move to |
|
@ephys I'll open a new PR for that refactor would be good for visibility! |
Pull Request Checklist
Description Of Change
If the user tries to register models with a name that was already registered previously this should make the
sequelize.definethrow.Closes #15641