[PR #12063] Proxy class with BackedEnum as primary key does not convert the enum #13449

Closed
opened 2026-01-22 16:17:09 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/12063

State: closed
Merged: Yes


There was 1 error:

1) Doctrine\Tests\ORM\Functional\Ticket\GH12063::testProxyAssociationWithBackedEnum
Error: Object of class Doctrine\Tests\ORM\Functional\Ticket\GH12063Code could not be converted to string

vendor/doctrine/dbal/src/Driver/PDO/Statement.php:26
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:19
vendor/doctrine/dbal/src/Logging/Statement.php:35
vendor/doctrine/dbal/src/Statement.php:93
src/Persisters/Entity/BasicEntityPersister.php:257
src/UnitOfWork.php:1057
src/UnitOfWork.php:402
src/EntityManager.php:268
tests/Doctrine/Tests/ORM/Functional/Ticket/GH12063.php:54

Affected versions: 3.0.0 through 4.0.x

**Original Pull Request:** https://github.com/doctrine/orm/pull/12063 **State:** closed **Merged:** Yes --- ``` There was 1 error: 1) Doctrine\Tests\ORM\Functional\Ticket\GH12063::testProxyAssociationWithBackedEnum Error: Object of class Doctrine\Tests\ORM\Functional\Ticket\GH12063Code could not be converted to string vendor/doctrine/dbal/src/Driver/PDO/Statement.php:26 vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:19 vendor/doctrine/dbal/src/Logging/Statement.php:35 vendor/doctrine/dbal/src/Statement.php:93 src/Persisters/Entity/BasicEntityPersister.php:257 src/UnitOfWork.php:1057 src/UnitOfWork.php:402 src/EntityManager.php:268 tests/Doctrine/Tests/ORM/Functional/Ticket/GH12063.php:54 ``` Affected versions: 3.0.0 through 4.0.x
admin added the pull-request label 2026-01-22 16:17:09 +01:00
admin closed this issue 2026-01-22 16:17:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#13449