populateRelation() public method
Populates the named relation with the related records.
Note that this method does not check if the relation exists or not.
See also getRelation().
public 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.