yii\db\ActiveRecordInterface::populateRelation PHP 메소드

populateRelation() 공개 메소드

Note that this method does not check if the relation exists or not.
부터: 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);