Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-519

MasterSlave connection does not keep Slave connections when there is a transaction

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      while doing a transaction (as a result of ORM persist),
      the connect function sets the forceMasterAsSlave which result on setting
      slave to master,

      on future selects, even if keepSlave is set to true
      and connecting to 'slave' as ->connect('slave')
      we will get master connections

      I assume we need to check keepSlave when forcing slaves to master

        Issue Links

          Activity

          Show
          Steve Müller added a comment - Fixed in commit: https://github.com/doctrine/dbal/commit/269d3e1f82138fb5aab123ca22db0d0d4a27efaa

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Ananda Agrawal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: