db\ActiveQueryTrait findWith()

findWith() public method

Finds records corresponding to one or multiple relations and populates them into the primary models.

public void findWith ( $with, &$models )
$with array

A list of relations that this query should be performed with. Please refer to with() for details about specifying this parameter.

$models array|yii\db\ActiveRecord[]

The primary models (can be either AR instances or arrays)

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

Please login to continue.