【问题标题】:How to enable doctrine:schema namespace for bin/console?如何为 bin/console 启用学说:schema 命名空间?
【发布时间】:2020-02-27 21:39:12
【问题描述】:

我正在尝试将此捆绑包添加到我的项目中:https://docs.coreshop.org/2.1.0/Bundles/Store_Bundle.html

我能够添加捆绑包并在内核中激活它,但是当我尝试“php bin/console 学说:schema:update --force”部分时,我收到一个错误:

There are no commands defined in the "doctrine:schema" namespace.

  Did you mean one of these?
      doctrine
      doctrine:cache
      doctrine:database
      doctrine:generate
      doctrine:query

我尝试安装各种我认为会包含它的学说包,但它似乎并没有什么不同。我在 Symfony 4.3 上运行。

【问题讨论】:

标签: doctrine pimcore coreshop


【解决方案1】:

Pimcore 目前不提供所需的软件包。所以你必须手动要求它们:

composer require symfony/maker-bundle symfony/orm-pack

您还必须将以下内容添加到您的config.yml

doctrine: 
    orm: 
        default_entity_manager: default

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-03
    相关资源
    最近更新 更多