mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Second level caching with fetch joins fails #6001
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @githoober on GitHub (Jun 28, 2018).
Bug Report
Summary
When caching a query with fetch joins using L2, its execution fails
Current behavior
The execution fails with a parameter type mismatch in \Doctrine\ORM\UnitOfWork::getEntityIdentifier
How to reproduce
Use the following entities, DDL, and the query:
Expected behavior
The execution does not break, and the query result is cached
When
Owneris removed from the SELECT statement, the query finishes successfully