I get the following error "Using $this when not in object context" when i use related model.
$file = \Yii::createObject([
'class' => ExcelFile::class,
'sheets' => [
'MoneyMovements' => [
'class' => ActiveExcelSheet::class,
'query' => User::find(),
'attributes' => [
'id',
'address.street', // related model
],
],
],
]);