mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	Document that link() will not trigger events/behaviors (#18683)
This commit is contained in:
		@ -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
 | 
					     * 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.
 | 
					     * 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
 | 
					     * 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.
 | 
					     * junction table which contains the primary key values from both models.
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user