2013-04-18 29 views
1

Hoi,Sylius進入Symfony2標準版

我正在嘗試將Sylius電子商務捆綁到一個新的Symfony 2.2.2標準版中。

當運行sylius:從命令行安裝命令,我不斷收到以下錯誤:

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的命名空間內的模型,該模型不可能是正確的。

任何想法?

回答

2

我們有同樣的問題,我們用symfony 2.1工作。我通過在應用程序Kernel.php文件中重新排序捆綁註冊來修復它。

在該文件I置於syliusCart束寄存器所有其他sylius束和教義寄存器之前。

我真的不知道是什麼原因導致這種情況,或者爲什麼這對我有用......但我希望這對你有用。

乾杯!

+0

日本鬼子,真正解決問題。我才意識到,他們還放置學說,捆綁前Sylius-捆綁在Sylius應用。謝謝你的協助!我會把它報告給開發團隊。 – madc