foreach ($operations as $operation) { [$prefix,
$field] =
explode('.',
$operation['column'
]);
$prefix =
ucfirst(strtolower($prefix));
$prefixes[] =
$prefix;
$fields[$prefix][] =
$field;
} $tables =
[];
// Build a list of tables affected by the given operations array
// Associate columns which are affected by the given operations array
foreach ($this->
getDqlHelper()->
getColumnsForProductListing() as $config) { $prefix =
ucfirst(strtolower($config['entity'
]));
// Only check for prefix, if prefix array was set
// Else, all default tables will be exported
if ($prefixes && !\
in_array($prefix,
$prefixes)) { continue;
} if ($config['editable'
]) { if (\
in_array($config['field'
],
$fields[$prefix])) { // We always need the id field
$tables[$config['table'
]]['prefix'
] =
$prefix;
$tables[$config['table'
]]['columns'
]['id'
] = 'id';