From 02d43d62505943e2d5cfde32c971f663085cbcfe Mon Sep 17 00:00:00 2001 From: robgloess Date: Tue, 26 Aug 2014 12:42:50 +0100 Subject: [PATCH] Update auto-routing.rst It appears that in RC1 of auto-routing-bundle the routes fail to generate unless the route basepath is set in the config. Exception: [Doctrine\ODM\PHPCR\Id\IdException] Property "parent" mapped as ParentDocument may not be empty in document of class "Symfony\Cmf\Bundle\RoutingAutoBundle\Model\AutoRoute" Simply adding the route basepath fixes this issue. --- tutorial/auto-routing.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tutorial/auto-routing.rst b/tutorial/auto-routing.rst index 61ce7203..4417f597 100644 --- a/tutorial/auto-routing.rst +++ b/tutorial/auto-routing.rst @@ -132,6 +132,7 @@ First you need to configure the auto routing bundle: persistence: phpcr: enabled: true + route_basepath: /cms/routes .. code-block:: xml @@ -139,7 +140,7 @@ First you need to configure the auto routing bundle: - + @@ -151,6 +152,7 @@ First you need to configure the auto routing bundle: 'persistence' => array( 'phpcr' => array( 'enabled' => true, + 'route_basepath' => '/cms/routes', ), ), ));