db\ActiveRelationTrait populateRelation()

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

doc_Yii
2016-10-30 16:56:33
Comments
Leave a Comment

Please login to continue.