我在Symfony的2個應用程序,並在整合Sylius產品包我得到以下錯誤的過程中運行類sylius.model.product_archetype.class不存在。
php app/console doctrine:schema:update --force
當誤差
The class sylius.model.product_archetype.class does not exist.
配置 這是工作我的confi.yml文件
sylius_cart:
resolver: app.cart_item_resolver # The id of our newly created service.
classes: ~ # This key can be empty but it must be present in the configuration.
sylius_order:
driver: doctrine/orm # Configure the doctrine orm driver used in documentation.
sylius_money: ~
sylius_product:
driver: doctrine/orm
stof_doctrine_extensions:
orm:
default:
sluggable: true
timestampable: true
#sylius_archetype:
sylius_archetype:
driver: doctrine/orm # Configure the doctrine orm driver used in the documentation.
sylius_translation:
default_locale: en
而捆綁我已經包括有 新FOS \ RestBundle \ FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle($this),
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
new Sylius\Bundle\ProductBundle\SyliusProductBundle(),
new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
new Sylius\Bundle\AttributeBundle\SyliusAttributeBundle(),
new Sylius\Bundle\VariationBundle\SyliusVariationBundle(),
new Sylius\Bundle\TranslationBundle\SyliusTranslationBundle(),
new Sylius\Bundle\CartBundle\SyliusCartBundle(),
new Sylius\Bundle\OrderBundle\SyliusOrderBundle(),
new Sylius\Bundle\MoneyBundle\SyliusMoneyBundle(),
new Sylius\Bundle\ArchetypeBundle\SyliusArchetypeBundle(),
任何想法,我做錯了這裏。看起來文檔不再與代碼匹配。
是文檔實際上是一個爛攤子。如果能指定它的目標版本,我會很棒。我已經建立了我的應用程序,回頭將會大大延遲。無論如何感謝 –