diff --git a/src/Adapter/PhpcrOdmAdapter.php b/src/Adapter/PhpcrOdmAdapter.php index ce0495d..ff99887 100644 --- a/src/Adapter/PhpcrOdmAdapter.php +++ b/src/Adapter/PhpcrOdmAdapter.php @@ -30,7 +30,9 @@ class PhpcrOdmAdapter implements AdapterInterface const TAG_NO_MULTILANG = 'no-multilang'; protected $dm; + protected $baseRoutePath; + protected $autoRouteFqcn; /** @@ -215,7 +217,7 @@ public function compareAutoRouteLocale(AutoRouteInterface $autoRoute, $locale) { $autoRouteLocale = $autoRoute->getLocale(); - if ($autoRouteLocale === self::TAG_NO_MULTILANG) { + if (self::TAG_NO_MULTILANG === $autoRouteLocale) { $autoRouteLocale = null; } diff --git a/tests/Unit/Adapter/PhpcrOdmAdapterTest.php b/tests/Unit/Adapter/PhpcrOdmAdapterTest.php index c4b5d52..fff8b7b 100644 --- a/tests/Unit/Adapter/PhpcrOdmAdapterTest.php +++ b/tests/Unit/Adapter/PhpcrOdmAdapterTest.php @@ -39,8 +39,11 @@ class PhpcrOdmAdapterTest extends \PHPUnit_Framework_TestCase private $metadata; private $contentDocument; + private $contentDocument2; + private $baseNode; + private $parentRoute; /** @@ -62,6 +65,7 @@ class PhpcrOdmAdapterTest extends \PHPUnit_Framework_TestCase * @var NodeInterface|ObjectProphecy */ private $phpcrRootNode; + private $baseRoutePath; /**