Description
Symfony version(s) affected
6.2.1
Description
I just upgraded to 6.2.1 and I'm having an issue with the param converters for some reason.
I currently have a listener firing on onKernelController which looks for a reference class within the attributes. That class is reference to a Page entity (it provides the ID for this value within a route created by the Symfony CMF Routing Bundle)
When it finds this, it creates a Proxy (using FOS LTS Proxy Manager) to that entity so it's lazy.
In the controller action if I reference the Page entity in the action arguments I get the following exception:
Object of class ProxyManagerGeneratedProxy\__PM__\FooBundleBundle\Entity\Page\Generatedb7b36c2f00636ed953728b9dae69f0eb could not be converted to string
It's as if there is a Doctrine Listener which is seeing the Proxy extends an actual Entity class and trying to do something with it and failing.
If I reference "PageInterface" which my Entity extends I don't have the issue (I think because it doesn't recognise it as an entity and try to convert it).
How can I stop whatever listener that is firing to stop this function?