【发布时间】:2013-04-18 16:28:34
【问题描述】:
喂,
我正在尝试将 Sylius 电子商务捆绑包实现到新的 Symfony 2.2.2 标准版中。
从命令行运行 sylius:install 命令时,我不断收到以下错误:
The class 'Sylius\Bundle\CartBundle\Model\CartItemInterface' was not found in
the chain configured namespaces Sylius\Bundle\CoreBundle\Entity,
Sylius\Bundle\SettingsBundle\Entity, Sylius\Bundle\CartBundle\Entity,
Sylius\Bundle\AssortmentBundle\Entity, Sylius\Bundle\TaxationBundle\Entity,
Sylius\Bundle\ShippingBundle\Entity, Sylius\Bundle\PaymentsBundle\Entity,
Sylius\Bundle\PromotionsBundle\Entity, Sylius\Bundle\AddressingBundle\Entity,
Sylius\Bundle\SalesBundle\Entity, Sylius\Bundle\InventoryBundle\Entity,
Sylius\Bundle\TaxonomiesBundle\Entity, FOS\UserBundle\Entity
捆绑包是通过Composer 导入的,通过AppKernel.php 激活,我已经从普通的Sylius 安装迁移了依赖项和配置,实际上不知道这个错误来自哪里。我刚刚注意到,它试图在 Entiy-Namespace 中找到一个模型,这是不对的。
谁有想法?
【问题讨论】: