diff --git a/Doctrine/Phpcr/Page.php b/Doctrine/Phpcr/Page.php index b8e4445..306ded3 100644 --- a/Doctrine/Phpcr/Page.php +++ b/Doctrine/Phpcr/Page.php @@ -18,6 +18,7 @@ use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface; use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface; use Symfony\Cmf\Bundle\CoreBundle\Translatable\TranslatableInterface; +use Symfony\Cmf\Bundle\MenuBundle\Model\MenuOptionsInterface; use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route; use Symfony\Cmf\Component\Routing\RouteReferrersReadInterface; use PHPCR\NodeInterface as PHPCRNodeInterface; @@ -40,6 +41,7 @@ class Page extends Route implements RouteReferrersReadInterface, // this must not be the write interface, it would make no sense PublishTimePeriodInterface, PublishableInterface, + MenuOptionsInterface, TranslatableInterface { /** @@ -670,7 +672,7 @@ public function setRouteOptions(array $options) { parent::setOptions($options); } - + /** * Retrieve UUID of Node or null if not present * @@ -679,7 +681,7 @@ public function setRouteOptions(array $options) public function getUUID() { $node = $this->getNode(); - + return $node instanceof PHPCRNodeInterface ? $node->getIdentifier() : null; - } + } } diff --git a/composer.json b/composer.json index ec7b5cd..74dc782 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "symfony/framework-bundle": "~2.3", "symfony-cmf/core-bundle": ">=1.1.0,<1.3-dev", "symfony-cmf/routing-bundle": ">=1.2.0,<1.4-dev", - "symfony-cmf/menu-bundle": ">=1.0.0,<1.3-dev", + "symfony-cmf/menu-bundle": ">=1.2.0,<1.3-dev", "symfony-cmf/content-bundle": ">=1.0.0,<1.3-dev", "doctrine/phpcr-bundle": ">=1.1.0,<1.3-dev", "doctrine/phpcr-odm": ">=1.1.0,<1.3-dev"