Я работаю на приложение 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(),
Любой идею, что я делаю неправильно здесь. Похоже, что документы больше не соответствуют коду.
да документация на самом деле беспорядок. Мне было бы здорово, если бы он мог указать версию, для которой он предназначен. У меня уже построено приложение, и я вернусь к большой задержке. Спасибо в любом случае –