symfony-cmf/BlockBundle — pull request #218 by sebastianblum (2014-11-03 13:19:13+00:00)
Title: Required Menu Bundle

I'm playing with symfony-cmf and I'm only using the BlockBundle (without the MenuBundle).

I got this exception

[Doctrine\Common\Proxy\Exception\UnexpectedValueException]
The type hint of parameter "menuNode" in method "setMenuNode" in class "Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\MenuBlock" is invalid.

https://github.com/symfony-cmf/BlockBundle/blob/master/Doctrine/Phpcr/MenuBlock.php
The MenuBlock has a dependency to Knp\Menu\NodeInterface

So I would change the require-dev dependency to require to solve the issue.

The other possibility is to require the sonata-menu-bundle instead of menu-bundle.