使用eZ Publish 5

时间:2015-04-27 11:34:08

标签: symfony doctrine composer-php sylius ezpublish

我在安装Sylius Bundle时遇到问题。当我尝试访问网站或尝试更新作曲家时出现错误:

[RuntimeException的] “找不到Doctrine RTEL”

这是我的配置:

composer.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"

config.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: Project\EshopBundle\Entity\Order
sylius_money: ~
sylius_product:
    driver: doctrine/orm 
    classes:
        product:
            model: Project\EshopBundle\Entity\Product
sylius_attribute:
    driver: doctrine/orm 
sylius_variation:
    driver: doctrine/orm 

Kernel.php

        // Sylius Order Bundle dependencies
        new FOS\RestBundle\FOSRestBundle(),
        new JMS\SerializerBundle\JMSSerializerBundle($this),
        new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
        new Sylius\Bundle\MoneyBundle\SyliusMoneyBundle(),
        new Sylius\Bundle\OrderBundle\SyliusOrderBundle(),

        // Sylius Ressources Bundle dependencies
        new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),

        // Sylius Cart Bundle dependencies
        new Sylius\Bundle\CartBundle\SyliusCartBundle(),

        // Sylius Product Bundle
        new Sylius\Bundle\ProductBundle\SyliusProductBundle(),
        new Sylius\Bundle\AttributeBundle\SyliusAttributeBundle(),
        new Sylius\Bundle\VariationBundle\SyliusVariationBundle(),

        new DoctrineBundle()

eZ发布版本:2014.11

感谢。

1 个答案:

答案 0 :(得分:0)

你必须配置doctrine以启用这样的ORM :(取自Symfony Standard Edition的例子)

# 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