Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility new proxy implementation changed the interface of proxy objects #2719

Closed
GromNaN opened this issue Jan 22, 2025 · 0 comments · Fixed by #2720
Closed

Incompatibility new proxy implementation changed the interface of proxy objects #2719

GromNaN opened this issue Jan 22, 2025 · 0 comments · Fixed by #2720

Comments

@GromNaN
Copy link
Member

GromNaN commented Jan 22, 2025

Bug Report

Q A
BC Break yes
Version 2.10-dev

Caused by #2700

Summary

The DoctrineMongoDBODMBundle assumes that every proxy objects implements ProxyManager\Proxy\GhostObjectInterface, this interface is in the configuration:

Current behavior

Failing tests in DoctrineMongoDBODMBundle

4) Doctrine\Bundle\MongoDBBundle\Tests\ServiceRepositoryTest::testInstantiatingServiceRepositoryForUnmappedClass
Failed asserting that exception of type "ReflectionException" matches expected exception "LogicException". Message was: "Interface "ProxyManager\Proxy\GhostObjectInterface" does not exist" at
vendor/doctrine/persistence/src/Persistence/AbstractManagerRegistry.php:180
src/Repository/ServiceRepositoryTrait.php:24
tests/DependencyInjection/Fixtures/Bundles/RepositoryServiceBundle/Repository/TestUnmappedDocumentRepository.php:16
tests/ServiceRepositoryTest.php:143

How to reproduce

Run DoctrineMongoDBODMBundle test suite with doctrine/mongodb-odm: 2.10@dev.

Expected behavior

The proxy implementation should not require additional configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant