Fehlermeldung beim erzeugen einer Entität

Hallo alle miteinander.

Ich habe eine neue Entität (Definition, Collection, Entity, Migration etc.) nach Anleitung erzeugt. Sobald ich aber den cache:clear ausführe kommt folgende Fehlermeldung. Es steh zwar dort was ihm nicht passt… Aber ich verstehe nicht wie ich das beheben kann da meine Klassennamen Strings sind.

Error {#9013
#message: „Class name must be a valid object or a string“
#code: 0
#file: „/var/www/html/vendor/shopware/core/Framework/DependencyInjection/Compi lerPass/EntityCompilerPass.php“
#line: 49
trace: {
/var/www/html/vendor/shopware/core/Framework/DependencyInjection/CompilerPas s/EntityCompilerPass.php:49 { …}
/var/www/html/vendor/shopware/core/Framework/DependencyInjection/CompilerPas s/EntityCompilerPass.php:23 { …}
/var/www/html/vendor/symfony/dependency-injection/Compiler/Compiler.php:91 { …}
/var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php:736 { …}
/var/www/html/vendor/symfony/http-kernel/Kernel.php:541 { …}
/var/www/html/vendor/shopware/core/Kernel.php:175 { …}
/var/www/html/vendor/symfony/framework-bundle/Console/Application.php:168 { …}
/var/www/html/vendor/symfony/framework-bundle/Console/Application.php:74 { … }
/var/www/html/vendor/symfony/console/Application.php:166 { …}
/var/www/html/bin/console:70 {
› $application = new Application($kernel->getKernel());
› $application->run($input);

}
}
}

Auszug aus meiner Definition.php

class APDefinition extends EntityDefinition
{
public const ENTITY_NAME = ‚angefragtes_produkt‘;

public function getEntityName(): string
{
    return self::ENTITY_NAME;
}

public function getEntityClass(): string
{
    return APEntity::class;
}

public function getCollectionClass(): string
{
    return APCollection::class;
}

Wäre cool wenn mich jemand aufklären kann auf was sich diese Fehlermeldung genau bezieht.