sonata-project/SonataPageBundle — Issue #21: Problem with DoctrineParamConverter::__construct()
Author: barryj
Created: 2011-12-01 16:12:55+00:00
State: open

Hi

I was having a problem in the Sonata Dashboard, where the link to Add New Snapshot was giving me a Catchable Fatal Error with method setPage. I followed the issues #19 and #20, and added the commit 7afc50e7f9c648a970659148eede780c57aa53a5, as directed.

Now every link in the Sonata Dashboard (User, Group, Page, Snapshot, with both Add New and List) all give the same error:

Catchable Fatal Error: Argument 1 passed to Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Symfony\Bundle\DoctrineBundle\Registry given, called in /Users/barry/Symfony/app/cache/dev/appDevDebugProjectContainer.php on line 1755 and defined in /Users/barry/Symfony/vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Request/ParamConverter/DoctrineParamConverter.php line 31

The error as shown on the log is:

ErrorException: Catchable Fatal Error: Argument 1 passed to Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Symfony\Bundle\DoctrineBundle\Registry given, called in /Users/barry/Symfony/app/cache/dev/appDevDebugProjectContainer.php on line 1755 and defined in /Users/barry/Symfony/vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Request/ParamConverter/DoctrineParamConverter.php line 31 (uncaught exception) at /Users/barry/Symfony/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php line 65

Anybody know whats going on here?

Thanks in advance

Barry