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