populateRelation() public abstract method (available since version 2.0.8)
Populates the named relation with the related records.
Note that this method does not check if the relation exists or not.
| public abstract void populateRelation ( $name, $records ) | ||
|---|---|---|
| $name | string | 
 The relation name, e.g.   |  
| $records | yii\db\ActiveRecordInterface|array|null | 
 The related records to be populated into the relation.  |  
Please login to continue.