Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 6c14a47

Browse files
committed
Fix the case when the uri is in fact the root
1 parent bc97bed commit 6c14a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adapter/PhpcrOdmAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function removeAutoRoute(AutoRouteInterface $autoRoute)
117117
public function createAutoRoute($uri, $contentDocument, $autoRouteTag)
118118
{
119119
$path = $this->baseRoutePath;
120-
$parentDocument = $this->dm->find(null, $path);
120+
$document = $parentDocument = $this->dm->find(null, $path);
121121
$segments = preg_split('#/#', $uri, null, PREG_SPLIT_NO_EMPTY);
122122
$headName = array_pop($segments);
123123
foreach ($segments as $segment) {

0 commit comments

Comments
 (0)