Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
2.5.1
-
None
-
ezlaunchpad, platformsh, Multirepositories
Description
When you use a mutlirepositories settings there is an issue with Doctrine connection.
In class EzSystems\EzPlatformWorkflow\Persistence\Gateway\DoctrineGateway
Symfony autowiring seems to inject first Doctrine available connection.
If you have one or more connection it doesn't works.
I change this file :
vendor/ezsystems/ezplatform-workflow/src/bundle/Resources/config/services/persistence.yml
With this content :
services: _defaults: autowire: true autoconfigure: true public: false # EzSystems\EzPlatformWorkflow\Persistence\Gateway\DoctrineGateway: ~ EzSystems\EzPlatformWorkflow\Persistence\Gateway\DoctrineGateway: autowire: false arguments: - "@ezpublish.persistence.connection" EzSystems\EzPlatformWorkflow\Persistence\Handler\WorkflowHandler: arguments: $gateway: '@EzSystems\EzPlatformWorkflow\Persistence\Gateway\DoctrineGateway' EzSystems\EzPlatformWorkflow\Persistence\Handler\HandlerInterface: '@EzSystems\EzPlatformWorkflow\Persistence\Handler\WorkflowHandler'