DDC-1651: APC query caching fails when an entity is bound to a query parameter. #2076

Closed
opened 2026-01-22 13:39:44 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 14, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user jonathanpete:

When an entity is bound as a query parameter, query caching with APC fails with error message:

Catchable fatal error: Object of class XXX could not be converted to string in /libs/doctrine-orm/Doctrine/DBAL/Connection.php on line 1081

If I bind with entity's primary key field, everything works fine.

Originally created by @doctrinebot on GitHub (Feb 14, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user jonathanpete: When an entity is bound as a query parameter, query caching with APC fails with error message: Catchable fatal error: Object of class XXX could not be converted to string in /libs/doctrine-orm/Doctrine/DBAL/Connection.php on line 1081 If I bind with entity's primary key field, everything works fine.
admin added the Bug label 2026-01-22 13:39:44 +01:00
admin closed this issue 2026-01-22 13:39:46 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 18, 2012):

Comment created by @beberlei:

Fixed and merged into 2.2 branch.

A rebase onto the 2.1.x branch would take a rewrite, since the code is completly new and since there is a simple workaround ($entity->getId()) when binding i will not backported it into the 2.1.x branch.

6cd82d77f5

@doctrinebot commented on GitHub (Feb 18, 2012): Comment created by @beberlei: Fixed and merged into 2.2 branch. A rebase onto the 2.1.x branch would take a rewrite, since the code is completly new and since there is a simple workaround ($entity->getId()) when binding i will not backported it into the 2.1.x branch. https://github.com/doctrine/doctrine2/commit/6cd82d77f5e581b3d21c60c5cb5e6c5042a3ff9b
Author
Owner

@doctrinebot commented on GitHub (Feb 18, 2012):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Feb 18, 2012): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2076