db\BaseActiveRecord populateRelation()

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. 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.

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

Please login to continue.