[PR #593] [MERGED] Fix SimpleObjectHydrator behavior when column not exists in fieldMappings, relationMappings and metaMappings #8421

Open
opened 2026-01-22 15:59:52 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/593
Author: @norberttech
Created: 2/28/2013
Status: Merged
Merged: 3/14/2013
Merged by: @beberlei

Base: masterHead: hydrator-fix


📝 Commits (1)

  • f951947 Fix SimpleObjectHydrator behavior when column not exists in fieldMappings, relationMappings and metaMappings

📊 Changes

2 files changed (+28 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php (+4 -1)
📝 tests/Doctrine/Tests/ORM/Hydration/SimpleObjectHydratorTest.php (+24 -0)

📄 Description

88c1975dda change seems to make unable to use findOneBy() method because of doctrine_rownum added to query.

findOneBy() throws:

Notice: Undefined index: doctrine_rownum in
...\vendor\doctrine\orm\lib\Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator.php line 183


🔄 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/593 **Author:** [@norberttech](https://github.com/norberttech) **Created:** 2/28/2013 **Status:** ✅ Merged **Merged:** 3/14/2013 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `hydrator-fix` --- ### 📝 Commits (1) - [`f951947`](https://github.com/doctrine/orm/commit/f9519479fcbad6cd8c7fd5e16e9f3141c4b5be82) Fix SimpleObjectHydrator behavior when column not exists in fieldMappings, relationMappings and metaMappings ### 📊 Changes **2 files changed** (+28 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php` (+4 -1) 📝 `tests/Doctrine/Tests/ORM/Hydration/SimpleObjectHydratorTest.php` (+24 -0) </details> ### 📄 Description https://github.com/doctrine/dbal/commit/88c1975dda492f3dd93cddea71ebacb40ed7efa5 change seems to make unable to use `findOneBy()` method because of `doctrine_rownum` added to query. `findOneBy()` throws: > Notice: Undefined index: doctrine_rownum in > ...\vendor\doctrine\orm\lib\Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator.php line 183 --- <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 15:59:52 +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#8421