[PR #696] [CLOSED] extra lazy joined test #8569

Open
opened 2026-01-22 16:00:34 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/696
Author: @Padam87
Created: 6/14/2013
Status: Closed

Base: masterHead: extralazyjoined


📝 Commits (4)

📊 Changes

5 files changed (+110 additions, -2 deletions)

View changed files

tests/Doctrine/Tests/Models/DDC2504/DDC2504ChildClass.php (+10 -0)
tests/Doctrine/Tests/Models/DDC2504/DDC2504OtherClass.php (+37 -0)
tests/Doctrine/Tests/Models/DDC2504/DDC2504RootClass.php (+23 -0)
📝 tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php (+31 -1)
📝 tests/Doctrine/Tests/OrmFunctionalTestCase.php (+9 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/696 **Author:** [@Padam87](https://github.com/Padam87) **Created:** 6/14/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `extralazyjoined` --- ### 📝 Commits (4) - [`371e566`](https://github.com/doctrine/orm/commit/371e5667a1bbe4f6331c544fdc1d20c666e69e8e) extra lazy joined test - [`1d13de1`](https://github.com/doctrine/orm/commit/1d13de1350eae6a93b518c37085da1877bc84924) dir separator - [`0f6101b`](https://github.com/doctrine/orm/commit/0f6101bf68cfa99b597c22111783c8fc32533fc4) DDC number - [`1e8f88b`](https://github.com/doctrine/orm/commit/1e8f88bad94236cabe32f9ad17f250f64720bc23) merge ### 📊 Changes **5 files changed** (+110 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `tests/Doctrine/Tests/Models/DDC2504/DDC2504ChildClass.php` (+10 -0) ➕ `tests/Doctrine/Tests/Models/DDC2504/DDC2504OtherClass.php` (+37 -0) ➕ `tests/Doctrine/Tests/Models/DDC2504/DDC2504RootClass.php` (+23 -0) 📝 `tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php` (+31 -1) 📝 `tests/Doctrine/Tests/OrmFunctionalTestCase.php` (+9 -1) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:00:34 +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#8569