[PR #696] extra lazy joined test #8574

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

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

State: closed
Merged: No


Hi,

This is just a bug report, not an actual PR, you don't have to merge.

When you have a JOINED inheritance, and you have another class, which is related to the parent class of the inheritance, and you only have an association for one of the child classes, EXTRA_LAZY fetch mode throws an exception, because it is not joining the parent table to the count query.

There are many ways around this fortunately, but I thought I should report it anyway.

**Original Pull Request:** https://github.com/doctrine/orm/pull/696 **State:** closed **Merged:** No --- Hi, This is just a bug report, not an actual PR, you don't have to merge. When you have a JOINED inheritance, and you have another class, which is related to the parent class of the inheritance, and you only have an association for one of the child classes, EXTRA_LAZY fetch mode throws an exception, because it is not joining the parent table to the count query. There are many ways around this fortunately, but I thought I should report it anyway.
admin added the pull-request label 2026-01-22 16:00:35 +01:00
admin closed this issue 2026-01-22 16:00:35 +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#8574