yii\db\BaseActiveRecord::instantiate PHP Метод

instantiate() публичный статический Метод

This method is called together with BaseActiveRecord::populateRecord by ActiveQuery. It is not meant to be used for creating new records directly. You may override this method if the instance being created depends on the row data to be populated into the record. For example, by creating a record based on the value of a column, you may implement the so-called single-table inheritance mapping.
public static instantiate ( array $row ) : static
$row array row data to be populated into the record.
Результат static the newly created active record
    public static function instantiate($row)
    {
        return new static();
    }