Model options overwrite association options #11056
Labels
status: awaiting response
For issues and PRs. OP must respond (or change something, if it is a PR). Maintainers have no action
type: docs
For issues and PRs. Things related to documentation, such as changes in the manuals / API reference.
What was unclear/insufficient/not covered in the documentation
Options at time of model definition take priority over options provided when associating models.
For example, if some associations require the onDelete: 'SET NULL' option, and others require the onDelete: 'NO ACTION' option, then you cannot set onDelete: 'CASCADE' on the model's options and expect the associations options to be respected.
If possible: Provide some suggestion how we can enhance the docs
Model definition options (e.g. onDelete and onUpdate) will replace model association options.
The text was updated successfully, but these errors were encountered: