Command/CleanAssetsCommand.php
protected function getEntityRemovalMessages(ClassMetadata $metadata, array $results)
    {
        $className = $metadata->getName();

        $ids = [];
        $primaryKeyReflection = $metadata->getSingleIdReflectionProperty();
        foreach ($results as $result) {
            $ids[] = $primaryKeyReflection->getValue($result);
        }
        $list = implode(', ', $ids);
        $info = "<comment>The following entities of class '{$className}' will be deleted: {$list}</comment>";

        $error = '<error>NO ENTITY REMOVED : Please use the --force option in non-interactive mode to prevent';
        $error .= ' any mistake</error>';

        $count = \count($results);

        return [
            'no_item' => "<comment>No entity to remove of class '{$className}'</comment>",
            'info' => $info,
            'skipping' => '<comment>Skipping entity removal.</comment>',
            'error' => $error,
            'question' => "Are you sure you want to remove {$count} entities for class '{$className}' ? y/[n]\n",
        ];
    }
protected function getEntityRemovalMessages(ClassMetadata $metadata, array $results)
    {
        $className = $metadata->getName();

        $ids = [];
        $primaryKeyReflection = $metadata->getSingleIdReflectionProperty();
        foreach ($results as $result) {
            $ids[] = $primaryKeyReflection->getValue($result);
        }
        $list = implode(', ', $ids);
        $info = "<comment>The following entities of class '{$className}' will be deleted: {$list}</comment>";

        $error = '<error>NO ENTITY REMOVED : Please use the --force option in non-interactive mode to prevent';
        $error .= ' any mistake</error>';

        $count = \count($results);

        return [
            'no_item' => "<comment>No entity to remove of class '{$className}'</comment>",
            'info' => $info,
            'skipping' => '<comment>Skipping entity removal.</comment>',
            'error' => $error,
            'question' => "Are you sure you want to remove {$count} entities for class '{$className}' ? y/[n]\n",
        ];
    }
@param ClassMetadata $metadata
@param array         $results

@throws \BadMethodCallException

@return array