populateRelation() public method
Finds the related records and populates them into the primary models.
public array populateRelation ( $name, &$primaryModels ) | ||
---|---|---|
$name | string |
The relation name |
$primaryModels | array |
Primary models |
return | array |
The related models |
throws | yii\base\InvalidConfigException |
if $link is invalid |
Please login to continue.