我在安装 Sylius Bundle 时遇到问题。这是我尝试访问网站或尝试更新作曲家时的错误:
[运行时异常]"找不到教义RTEL"
这是我的配置:
作曲家.json
"doctrine/orm": "~2.3",
"friendsofsymfony/user-bundle": "2.0.*@dev",
"sylius/money-bundle": "0.12",
"sylius/order-bundle": "0.12",
"sylius/product-bundle": "0.12",
"sylius/resource-bundle": "0.12",
"sylius/cart-bundle": "0.12"
配置.yml
stof_doctrine_extensions:
orm:
default:
timestampable: true
# Sylius
sylius_cart:
resolver: app.cart_item_resolver
classes: ~
sylius_order:
driver: doctrine/orm
classes:
order:
model: ProjectEshopBundleEntityOrder
sylius_money: ~
sylius_product:
driver: doctrine/orm
classes:
product:
model: ProjectEshopBundleEntityProduct
sylius_attribute:
driver: doctrine/orm
sylius_variation:
driver: doctrine/orm
内核.php
// Sylius Order Bundle dependencies
new FOSRestBundleFOSRestBundle(),
new JMSSerializerBundleJMSSerializerBundle($this),
new StofDoctrineExtensionsBundleStofDoctrineExtensionsBundle(),
new SyliusBundleMoneyBundleSyliusMoneyBundle(),
new SyliusBundleOrderBundleSyliusOrderBundle(),
// Sylius Ressources Bundle dependencies
new SyliusBundleResourceBundleSyliusResourceBundle(),
// Sylius Cart Bundle dependencies
new SyliusBundleCartBundleSyliusCartBundle(),
// Sylius Product Bundle
new SyliusBundleProductBundleSyliusProductBundle(),
new SyliusBundleAttributeBundleSyliusAttributeBundle(),
new SyliusBundleVariationBundleSyliusVariationBundle(),
new DoctrineBundle()
eZ 发布版本 : 2014.11
谢谢。
您必须配置原则才能启用ORM,如下所示: (示例取自Symfony标准版)
# Doctrine Configuration
doctrine:
dbal:
driver: pdo_mysql
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
# if using pdo_sqlite as your database driver:
# 1. add the path in parameters.yml
# e.g. database_path: "%kernel.root_dir%/data/data.db3"
# 2. Uncomment database_path in parameters.yml.dist
# 3. Uncomment next line:
# path: "%database_path%"
orm:
auto_generate_proxy_classes: "%kernel.debug%"
auto_mapping: true