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 ?
        Hide
        Jonathan H. Wage added a comment -

        Hi, i reverted the change that caused these problems so it should be all good now.

        Show
        Jonathan H. Wage added a comment - Hi, i reverted the change that caused these problems so it should be all good now.
        Jonathan H. Wage made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=MODM-120, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: