Browse Source

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

tags/2.0.43
Allan 3 years ago committed by GitHub
parent
commit
c905c10c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      framework/db/BaseActiveRecord.php

3
framework/db/BaseActiveRecord.php

@ -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.

Loading…
Cancel
Save