2

我正在尝试将 SonataAdminBundle 和 SonataUserBundle 配置为使用 mongodb 并收到以下错误:

ClassNotFoundException: Attempted to load interface "PageableManagerInterface" from namespace "Sonata\CoreBundle\Model" in /Users/me/Sites/mynamespace-webtools/vendor/sonata-project/user-bundle/Model/UserManagerInterface.php line 25. Do you need to "use" it from another namespace?

任何人都可以阐明可能导致这种情况的原因吗?我也得到了这里描述的症状,并尝试了那里建议的答案。

谁能确认 mongodb 功能是否刚刚损坏?我还想知道这个错误是否与这个提交有关?

4

1 回答 1

4

这似乎是 Sonata 系统本身的依赖错误,与 MongoDB 模块没有严格关系。

PageableManagerInterface 类由 Sonata Core Bundle 提供。确保在 composer.json 文件中有它:

"require": {
    "sonata-project/core-bundle": "dev-master",
}

之后,确保您的安装是最新的并像往常一样清理缓存:

php composer.phar self-update ; php composer.phar update
于 2014-05-06T13:29:57.263 回答