Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2796

Workflow bundle use only one connection in multirepositories settings

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 2.5.1
    • Workflow
    • 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'
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            grégory monot grégory monot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: