134 protected function getEntityFields($groupFields, array $whiteList = [],
string $entityAlias =
''): array
139 array_walk($whiteList,
static function($fieldName) use ($entityAlias, &$map) {
140 $map[$entityAlias . $fieldName] = $fieldName;
143 $groupFields = array_filter($groupFields,
static function ($key) use ($map) {
144 return (array_key_exists($key, $map));
145 }, ARRAY_FILTER_USE_KEY);
147 foreach ($groupFields as $key => $value)
149 $entityFields[$map[$key]] = $value;
152 return $entityFields;