mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #97] [MERGED] [DDC-1301] Fixed count() for fetch="EXTRA_LAZY" on OneToMany association #7705
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/97
Author: @asm89
Created: 7/28/2011
Status: ✅ Merged
Merged: 7/28/2011
Merged by: @beberlei
Base:
master← Head:DDC-1301📝 Commits (3)
b295169[DDC-1301] Added tests for fetch="EXTRA_LAZY" count() on a "legacy" databased7dbde8[DDC-1301] Fixed count() for fetch="EXTRA_LAZY" on OneToMany associationd439f67[DDC-1301] Prefixed all Legacy models properties with _📊 Changes
7 files changed (+388 additions, -7 deletions)
View changed files
📝
lib/Doctrine/ORM/Persisters/OneToManyPersister.php(+9 -7)➕
tests/Doctrine/Tests/Models/Legacy/LegacyArticle.php(+33 -0)➕
tests/Doctrine/Tests/Models/Legacy/LegacyCar.php(+41 -0)➕
tests/Doctrine/Tests/Models/Legacy/LegacyUser.php(+80 -0)➕
tests/Doctrine/Tests/Models/Legacy/LegacyUserReference.php(+65 -0)➕
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1301Test.php(+148 -0)📝
tests/Doctrine/Tests/OrmFunctionalTestCase.php(+12 -0)📄 Description
Ticket: http://www.doctrine-project.org/jira/browse/DDC-1301
The first commit adds (failing) tests and a set of "legacy" models. The second commit fixes the issue.
I added the legacy models because it may be useful to use them to verify some other features too? The count() function was broken, but it didn't show up in the tests because all the Cms models that were used for testing map the column
idon $id.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.