doctrine / DoctrinePHPCRBundle

This bundle integrates Doctrine PHPCR ODM and PHPCR backends into Symfony
http://phpcr.github.com
MIT License
156 stars 66 forks source link

Call to undefined function "addDocumentNamespace" #408

Closed rmbl closed 1 month ago

rmbl commented 1 month ago

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

dbu commented 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?

rmbl commented 1 month ago

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.

dbu commented 1 month ago

thanks. i guess that has to count as progress, at least. tagged as https://github.com/doctrine/DoctrinePHPCRBundle/releases/tag/3.0.2