Hallo liebe Entwickler-Community,
ist Euch vielleicht schon so ein Fehler nach Umstellung auf PHP7 bekannt?
Fatal error : Uncaught TypeError: Argument 1 passed to Shopware\CustomModels\CountriesList\Repository::__construct() must be an instance of Doctrine\DBAL\Connection, instance of Shopware\Components\Model\ModelManager given, called in /html/shopware/engine/Shopware/Components/Model/ProxyAwareRepositoryFactory.php on line 82 and defined in /html/shopware/engine/Shopware/Plugins/Community/Frontend/BogxPlugin/Models/CountriesList/Repository.php:20 Stack trace: #0 /html/shopware/engine/Shopware/Components/Model/ProxyAwareRepositoryFactory.php(82): Shopware\CustomModels\CountriesList\Repository->__construct(Object(Shopware\Components\Model\ModelManager), Object(Doctrine\ORM\Mapping\ClassMetadata)) #1 /html/shopware/engine/Shopware/Components/Model/ProxyAwareRepositoryFactory.php(62): Shopware\Components\Model\ProxyAwareRepositoryFactory->createRepository(Object(Shopware\Components\Model\ModelManager), ‚Shopware\Custom…‘) #2 /html/shopware/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(698): Shopware\Components\Model\P in /html/shopware/engine/Shopware/Plugins/Community/Frontend/BogxPlugin/Models/CountriesList/Repository.php on line 20
503 Service Unavailable
Die bemängelte Funktion:
connection = $connection;
$this->eventManager = $eventManager;
}
...
...
...
Irgendein ein Tipp was PHP7 in dem „__construct“ nicht passt?
Best, Konrad