I was using JMSI8nRoutingBundle in my (Sylius) project, everything was going well.
I've just switch to CMFRouting for some of my routes (mainly products), but these routes don't work properly when I have JMS i8n routing enabled, here is the error I get when using {{ path(product) }}
:
Catchable fatal error: Object of class MyApp\Model\MyProduct could not
be converted to string in C:\wamp\www\caissin\vendor\jms\i18n-routing-
bundle\JMS\I18nRoutingBundle\Router\I18nRouter.php on line 133
If I disable JMS i8n routing, everything is going well with the CMF routes & the classic ones.
So my question is: is there something specific to do to make JMS i8n routing & CMF routing work together? It seems that JMS is taking over CMF, instead of doing a chain together.
Weirdly I haven't found anything on google regarding this topic.
Thanks in advance.
the issue is caused how JMSi18nBundle overrides the default router: https://github.com/schmittjoh/JMSI18nRoutingBundle/issues/73