-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not denormalize object of type RouteCollection #270
Comments
Can you give the stack trace of the exception too ? |
Here it is. Now, I can be much more precise :
|
If it only happens when there is no exposed routes, I know what the issue is and how to fix it. Thanks for this additional info. |
and regarding clearing the cache, this is logical, as this exception happens when loading the exposed routes from the cache (and so the first request after clearing the cache does not have this issue, as there is no cache to reload yet) |
Is this issue still actual? |
I just got it with a fresh install so yes. |
Same error like jcrombez's, Any solution? |
I have committed a fix in the master branch, could one of you check if the issue is fixed? If that is the case I'll tag a new release. |
@tobias-93, I tried your fix on master on a project I'm working on. It doesn't throw an exception, but the routes are empty:
|
Turns out the routes were empty because I forgot the options expose attribute in the route config. Thanks for the fix! |
@zquintana thank you for confirming the fix works. The fix is specifically for the case that no routes are exposed, so that would be expected behaviour. Did you also check it worked without exposed routes after building the cache? |
Hi,
Trying to use the Pre-release - 2.0.0-alpha1 with Symfony 3.2, I get the following exception
when I call
I know, this is an alpha...
Does anyone know a quick workaround, or should I only have to be patient until next release ?
Will you consider upgrading this bundle in order it works with sf 3 ?
Thanks for your answer
The text was updated successfully, but these errors were encountered: