2013-04-09 1 views
1

나는 모든 것이 작동하고 최신 패키지를 얻으려고 내 Mac 포트를 업그레이드했습니다. Mongo 2.4.1을 설치했고 1.53.0_1 + no_single + no_static + python27을 향상 시켰습니다. 내 심포니 두 프로그램에서 동일한 코드를 사용하여 인터페이스하려고하면 지금, 나는 얻을 :Mongo 2.4.1 업그레이드가 치명적인 오류를 일으켰습니다 : 'Doctrine MongoDB Util InvalidArgumentException'클래스를 찾을 수 없습니다.

Fatal error: Class 'Doctrine\MongoDB\Util\InvalidArgumentException' not found in /Users/saudfaisal/Sites/dailytamatar.com/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Util/ReadPreference.php on line 63 

내 composer.json처럼 보이는 다음

{ 
    "name": "symfony/framework-standard-edition", 
    "description": "The \"Symfony Standard Edition\" distribution", 
    "autoload": { 
     "psr-0": { "": "src/" } 
    }, 
    "require": { 
     "php": ">=5.3.3", 
     "symfony/symfony": "2.1.*", 
     "doctrine/orm": ">=2.2.3,<2.4-dev", 
     "doctrine/doctrine-bundle": "1.0.*", 
     "twig/extensions": "1.0.*@dev", 
     "symfony/assetic-bundle": "2.1.*", 
     "symfony/swiftmailer-bundle": "2.1.*", 
     "friendsofsymfony/user-bundle": "*", 
     "friendsofsymfony/rest-bundle": "*", 
     "jms/serializer-bundle": "*", 
     "symfony/monolog-bundle": "2.1.*", 
     "sensio/distribution-bundle": "2.1.*", 
     "sensio/framework-extra-bundle": "2.1.*", 
     "sensio/generator-bundle": "2.1.*", 
     "jms/security-extra-bundle": "1.2.*", 
     "jms/di-extra-bundle": "1.1.*", 
     "kriswallsmith/assetic": "1.1.*@dev", 
     "doctrine/mongodb-odm-bundle": "3.0.*@dev" 
    }, "minimum-stability": "stable", 
    "scripts": { 
     "post-install-cmd": [ 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
     ], 
     "post-update-cmd": [ 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
     ] 
    }, 
    "extra": { 
     "symfony-app-dir": "app", 
     "symfony-web-dir": "web" 
    } 
} 

내가 과거에 문제가 있었는지 부스트가 있었고, 1.49.0_0을 올리기 위해 롤백해야했지만, 이번에는 작동하지 않았다.

누군가 나를 도와 줄 수 있습니까?

답변

1

이것은 몇 달 전에 발표 된 doctrine/mongodb 패키지의 1.0.2 버전에서 수정되었습니다. 확인하려면 실제 커밋이 b317c8e입니다.

번들의 내부 종속성에 의존하지 말고 composer.json 파일에 명시 적으로 doctrine/mongodb-odmdoctrine/mongodb을 요구할 것을 제안합니다. 또한 composer.lock 파일이 ODM의 버전 요구 사항을 충족하는 doctrine/mongodb의 구형 릴리스를 가리킬 가능성이 있습니다. 이 경우 종속 파일을 (composer upgrade을 통해) 업그레이드해야합니다. 그러면 잠금 파일과 그 안에있는 버전/커밋 포인트도 업그레이드해야합니다.

+0

감사합니다. 그것은 정확하게 수행되어야 할 필요가있었습니다. – kratos