Closed rmbl closed 1 month ago
oh, indeed :facepalm:
looks like we are missing a test for that functionality... can you please try #409 and report if that fixes the problem for you?
Removing lines 47 and 48 let me warm up the cache at least. The app where I found the error is sadly not in a testable state right now as I have to update a ton of packages :) So I can't look any deeper into it.
thanks. i guess that has to count as progress, at least. tagged as https://github.com/doctrine/DoctrinePHPCRBundle/releases/tag/3.0.2
With the newest versions of doctrine/phpcr-odm and doctrine/phpcr-bundle installed, it's currently not possible to warm up the cache if DoctrinePhpcrMappingsPass is used. It tries to call addDocumentNamespace which was removed in doctrine/phpcr-odm. See https://github.com/doctrine/DoctrinePHPCRBundle/blob/a87ccf52e1034a19b5d9760cba35333511862b9d/src/DependencyInjection/Compiler/DoctrinePhpcrMappingsPass.php#L47