if (\
count($statements) === 0
) { return;
} foreach ($statements as $statement) { $usedMediaIds =
$this->connection->
fetchFirstColumn( $statement,
[$event->
getUnusedIds()],
[ArrayParameterType::STRING
] );
$event->
markAsUsed($usedMediaIds);
} } /**
* @return list<array{id: string, name: string, entity_name: string}>
*/
private function findCustomFieldsWithEntitySelect(string
$componentType): array
{ /** @var list<array{id: string, name: string, entity_name: string}> $results */
$results =
$this->connection->
fetchAllAssociative( sprintf(