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. orders for a relation defined via getOrders() method (case-sensitive). $records
yii\db\ActiveRecordInterface|array|null
The related records to be populated into the relation.