yii\db\ActiveRecordInterface::populateRelation PHP Method

populateRelation() public method

Note that this method does not check if the relation exists or not.
Since: 2.0.8
public populateRelation ( string $name, yii\db\ActiveRecordInterface | array | null $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.
    public function populateRelation($name, $records);