Closed emodric closed 1 year ago
is this coming from https://github.com/symfony-cmf/routing-bundle/blob/19b4dc9f279f9721ece585dcb66217a1db7b5f9d/src/CmfRoutingBundle.php#L92 ? do you know what the correct thing to pass would be to work with persistence 3?
and could anything be using the alias and stumble if we change it?
It's coming from that line, yes. (there are actually two of them, one for orm, one for phpcr)
In my tests in netgen/layouts-contentful
, just removing the line completely worked fine. No issues with reading and writing the routes to the database.
its been a long time, maybe this is registering the alias so that other systems can use the alias, and people normally don't use the alias anymore.
does this solve the problem? https://github.com/symfony-cmf/routing-bundle/pull/486
@dbu Indeed it does!
Thanks David! :tada:
Environment
Symfony packages
All Symfony packages are at 6.3.0.
Symfony CMF packages
3.0.1 versions of
routing
androuting-bundle
Subject
Cmf Routing Bundle does not work with
doctrine/persistence
3.xSteps to reproduce
symfony new test composer require symfony/orm-pack composer require symfony-cmf/routing-bundle
Configure the CMF Routing bundle in
config/packages/cmf_routing.yaml
withRun
php bin/console doctrine:schema:update --dump-sql -vvv
Expected results
I expect the command to run successfuly.
Actual results
An exception is thrown: