} return $list;
} /**
* {@inheritdoc}
*/
protected function getModelFields($model,
$alias = null
) { $fields = parent::
getModelFields($model,
$alias);
if ($model !== Customer::
class) { return $fields;
} $fields =
array_merge($fields,
[ 'customerGroup' =>
['alias' => 'groups.id', 'type' => 'int'
],
'shop' =>
['alias' => 'shops.id', 'type' => 'int'
],
'zipcode' =>
['alias' => 'billing.zipcode', 'type' => 'string'
],
'city' =>
['alias' => 'billing.city', 'type' => 'string'
],
'countryId' =>
['alias' => 'billing.countryId', 'type' => 'int'
],
'company' =>
['alias' => 'billing.company', 'type' => 'string'
],
]);