Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-120

[Configuration] problem with changing the defaultDB

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0BETA1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      What i want to do is to change the database name of the document manager:

      $config = new Configuration();
      $dm = new DocumentManager($conn, 'my_db', $config);

      $config->setDefaultDB('another_db');
      $dm->getDatabase(); // 'my_db' insteadof 'another_db'

      Is there another solution to do this ?

        Activity

        jules b created issue -
        jules b made changes -
        Field Original Value New Value
        Description What i want to do is to change the database name of the configuration:

        $config = new Configuration($conn, 'my_db');
        $config->setDefaultDB('another_db');
        $config->getDatabase(); // 'my_db' insteadof 'another_db'

        Is there another solution to do this ?
        What i want to do is to change the database name of the document manager:


        $config = new Configuration();
        $dm = new DocumentManager($conn, 'my_db', $config);

        $config->setDefaultDB('another_db');
        $dm->getDatabase(); // 'my_db' insteadof 'another_db'


        Is there another solution to do this ?
        Jonathan H. Wage made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            jules b
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: