This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » eZ Publish 5 Platform » Installing Sylius with eZ Publish 5
expandshrink

Installing Sylius with eZ Publish 5

Installing Sylius with eZ Publish 5

Monday 27 April 2015 2:20:11 pm - 3 replies

I have problems installing Sylius Bundle. Here is the error when i try to access the web site or when i try to update composer :
[RuntimeException]
"Cannot find Doctrine RTEL"
Here is my config :
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 Publish version : 2014.11
Thanks.

Modified on Monday 27 April 2015 2:22:32 pm by Task Mikaël

Monday 27 April 2015 3:53:33 pm

Found solution :

 doctrine:
    dbal:
        connections:
            default:
                driver:     "pdo_%database_driver%"
                host:       "%database_host%"
                user:       "%database_user%"
                password:   "%database_password%"
                dbname:     "%database_name%"
                charset:    "%database_charset%"
    orm:
        auto_generate_proxy_classes: "%kernel.debug%"
        auto_mapping: true

ORM was not configured.

Modified on Monday 27 April 2015 3:54:03 pm by Task Mikaël

Monday 27 April 2015 5:07:12 pm

Hello Task,

I'm pleased you were able to find a solution so quickly.

Thank you very much for sharing your solution here with the eZ Community!

Enjoy using Sylius, I hear it's amazing happy.gif Emoticon

EDIT: I noticed a few minutes ago that this question is also crossposted on StackOverflow:

http://stackoverflow.com/questions/29894581/installing-sylius-with-ez-publish-5

Cheers,
Heath 

Modified on Monday 27 April 2015 5:26:59 pm by // Heath

Monday 27 April 2015 5:46:25 pm

Hi,

 

Yeah, Sylius is using StackOverflow for any questions about the project. So i have posted the question on both forums.

 

I have another bug while trying to install the CartBundle it says :

 

[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException] Unable to replace alias "app.cart_item_resolver" with "sylius.cart_resolver".

 

And : [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException] The service definition "app.cart_item_resolver" does not exist.

 

It's seems that the service is not found, but I have followed the tutorial properly and still i wasn't able to find something about this error.Any ideas ?

 

Cheers.

Modified on Monday 27 April 2015 5:47:41 pm by Task Mikaël

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from