Document that link() will not trigger events/behaviors (#18683)

This commit is contained in:
Allan
2021-08-07 16:04:25 +02:00
committed by GitHub
parent 7ebaaf0216
commit c905c10c93

View File

@ -1278,7 +1278,8 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface
*
* The relationship is established by setting the foreign key value(s) in one model
* to be the corresponding primary key value(s) in the other model.
* The model with the foreign key will be saved into database without performing validation.
* The model with the foreign key will be saved into database **without** performing validation
* and **without** events/behaviors.
*
* If the relationship involves a junction table, a new row will be inserted into the
* junction table which contains the primary key values from both models.