[PR #38] [CLOSED] [2.0.x] Fixed an undefined index by a HydrationException #7629

Closed
opened 2026-01-22 15:56:03 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/38
Author: @francisbesset
Created: 3/21/2011
Status: Closed

Base: masterHead: parent_object_not_found


📝 Commits (10+)

  • 1ca924d Fix for DDC-944
  • 6bff8c3 DDC-931 - SchemaTool#dropSchema() should not stop on failure of a single query (as stated in docblocks).
  • c1f10b4 DDC-617 - Throw error if selecting identification variables without picking at least one root entity alias.
  • 699cd2c DDC-945 - Throw exception in ClassMetadataFactory when mapped superclass has to many associations.
  • b288eac Merge branch 'DDC-945' into 2.0.x
  • 18fc94b DDC-928 - Fix undefined variable notice.
  • 1059991 Merge branch 'DDC-928' into 2.0.x
  • 615a115 DDC-837 - Fix bug with associations of the same name not being possible in inheritance hierachies.
  • 41e5fc6 Merge branch 'DDC-837' into 2.0.x
  • cd6611a DDC-961 - Bugfix with missing first letter in automatic join table names in global namespace entities.

📊 Changes

93 files changed (+2020 additions, -5714 deletions)

View changed files

📝 .gitmodules (+6 -0)
📝 build.properties.dev (+3 -3)
📝 build.xml (+62 -5)
📝 lib/Doctrine/ORM/AbstractQuery.php (+36 -13)
📝 lib/Doctrine/ORM/EntityManager.php (+2 -2)
📝 lib/Doctrine/ORM/EntityRepository.php (+4 -0)
📝 lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php (+17 -13)
📝 lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php (+8 -4)
📝 lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php (+15 -6)
📝 lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php (+2 -1)
📝 lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php (+7 -1)
📝 lib/Doctrine/ORM/Mapping/Driver/StaticPHPDriver.php (+28 -12)
📝 lib/Doctrine/ORM/Mapping/MappingException.php (+8 -4)
📝 lib/Doctrine/ORM/Persisters/AbstractEntityInheritancePersister.php (+28 -5)
📝 lib/Doctrine/ORM/Persisters/BasicEntityPersister.php (+90 -31)
📝 lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php (+20 -19)
📝 lib/Doctrine/ORM/Persisters/SingleTablePersister.php (+4 -6)
📝 lib/Doctrine/ORM/Proxy/ProxyFactory.php (+21 -3)
📝 lib/Doctrine/ORM/Query/Parser.php (+47 -15)
📝 lib/Doctrine/ORM/Query/QueryException.php (+1 -2)

...and 73 more files

📄 Description

If the parent object of relation is not found, doctrine generate an undefined index.


🔄 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/38 **Author:** [@francisbesset](https://github.com/francisbesset) **Created:** 3/21/2011 **Status:** ❌ Closed **Base:** `master` ← **Head:** `parent_object_not_found` --- ### 📝 Commits (10+) - [`1ca924d`](https://github.com/doctrine/orm/commit/1ca924d021fef83ea056eea5fc767e4198f63b7e) Fix for DDC-944 - [`6bff8c3`](https://github.com/doctrine/orm/commit/6bff8c338fd25623bbccee5fa3fa3ccdf24cd0f3) DDC-931 - SchemaTool#dropSchema() should not stop on failure of a single query (as stated in docblocks). - [`c1f10b4`](https://github.com/doctrine/orm/commit/c1f10b4673a3d425a252308134af8aa3a88f55cb) DDC-617 - Throw error if selecting identification variables without picking at least one root entity alias. - [`699cd2c`](https://github.com/doctrine/orm/commit/699cd2cf4bec196c9ba21773d67ff6ccd981a7ea) DDC-945 - Throw exception in ClassMetadataFactory when mapped superclass has to many associations. - [`b288eac`](https://github.com/doctrine/orm/commit/b288eac530f604460fa71d3d8584291225a961ec) Merge branch 'DDC-945' into 2.0.x - [`18fc94b`](https://github.com/doctrine/orm/commit/18fc94b3956df3899f3cfc8b3906103284a6c86b) DDC-928 - Fix undefined variable notice. - [`1059991`](https://github.com/doctrine/orm/commit/105999186523fa1d1e07f258b59c4b437b29674b) Merge branch 'DDC-928' into 2.0.x - [`615a115`](https://github.com/doctrine/orm/commit/615a1159a75814f315d4bfb7c8b7f30d8b569611) DDC-837 - Fix bug with associations of the same name not being possible in inheritance hierachies. - [`41e5fc6`](https://github.com/doctrine/orm/commit/41e5fc6b34515a26b001e53dde41b39eb6a7d054) Merge branch 'DDC-837' into 2.0.x - [`cd6611a`](https://github.com/doctrine/orm/commit/cd6611ad3e4dba233f968de1d8c9d7798331b4a7) DDC-961 - Bugfix with missing first letter in automatic join table names in global namespace entities. ### 📊 Changes **93 files changed** (+2020 additions, -5714 deletions) <details> <summary>View changed files</summary> 📝 `.gitmodules` (+6 -0) 📝 `build.properties.dev` (+3 -3) 📝 `build.xml` (+62 -5) 📝 `lib/Doctrine/ORM/AbstractQuery.php` (+36 -13) 📝 `lib/Doctrine/ORM/EntityManager.php` (+2 -2) 📝 `lib/Doctrine/ORM/EntityRepository.php` (+4 -0) 📝 `lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php` (+17 -13) 📝 `lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php` (+8 -4) 📝 `lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php` (+15 -6) 📝 `lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php` (+2 -1) 📝 `lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php` (+7 -1) 📝 `lib/Doctrine/ORM/Mapping/Driver/StaticPHPDriver.php` (+28 -12) 📝 `lib/Doctrine/ORM/Mapping/MappingException.php` (+8 -4) 📝 `lib/Doctrine/ORM/Persisters/AbstractEntityInheritancePersister.php` (+28 -5) 📝 `lib/Doctrine/ORM/Persisters/BasicEntityPersister.php` (+90 -31) 📝 `lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php` (+20 -19) 📝 `lib/Doctrine/ORM/Persisters/SingleTablePersister.php` (+4 -6) 📝 `lib/Doctrine/ORM/Proxy/ProxyFactory.php` (+21 -3) 📝 `lib/Doctrine/ORM/Query/Parser.php` (+47 -15) 📝 `lib/Doctrine/ORM/Query/QueryException.php` (+1 -2) _...and 73 more files_ </details> ### 📄 Description If the parent object of relation is not found, doctrine generate an undefined index. --- <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:56:03 +01:00
admin closed this issue 2026-01-22 15:56:03 +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#7629