[PR #146] [MERGED] Improve Error Messages in ClassMetadata and UnitOfWork #7773

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/146
Author: @beberlei
Created: 10/15/2011
Status: Merged
Merged: 12/21/2011
Merged by: @beberlei

Base: masterHead: ImproveErrorMessages


📝 Commits (6)

  • cb28bfd Improve Error Messages in ClassMetadata and UnitOfWork
  • dba8360 Merge master into ImproveErrorMessages
  • 3aea203 Throw exception if target entity is not found.
  • 5392737 Improved and extracted UnitOfWork error messages
  • a8906ce Stringify entity in all UnitOfWork exceptions
  • 719e05e Extract more messages into ORMInvalidArgumentException

📊 Changes

11 files changed (+260 additions, -39 deletions)

View changed files

📝 lib/Doctrine/ORM/Mapping/ClassMetadata.php (+19 -0)
📝 lib/Doctrine/ORM/Mapping/MappingException.php (+5 -0)
lib/Doctrine/ORM/ORMInvalidArgumentException.php (+107 -0)
📝 lib/Doctrine/ORM/UnitOfWork.php (+22 -32)
📝 tests/Doctrine/Tests/ORM/Functional/Locking/LockTest.php (+1 -1)
tests/Doctrine/Tests/ORM/Functional/UnitOfWorkLifecycleTest.php (+71 -0)
📝 tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php (+5 -1)
📝 tests/Doctrine/Tests/ORM/Mapping/BasicInheritanceMappingTest.php (+1 -0)
📝 tests/Doctrine/Tests/ORM/Mapping/ClassMetadataFactoryTest.php (+2 -2)
📝 tests/Doctrine/Tests/ORM/Mapping/ClassMetadataTest.php (+13 -2)
📝 tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php (+14 -1)

📄 Description

No description provided


🔄 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/146 **Author:** [@beberlei](https://github.com/beberlei) **Created:** 10/15/2011 **Status:** ✅ Merged **Merged:** 12/21/2011 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `ImproveErrorMessages` --- ### 📝 Commits (6) - [`cb28bfd`](https://github.com/doctrine/orm/commit/cb28bfd4848e8d6dcf5b682e3ace624a8d69fa96) Improve Error Messages in ClassMetadata and UnitOfWork - [`dba8360`](https://github.com/doctrine/orm/commit/dba83601668ae36f123f452edca4a2372abf9db9) Merge master into ImproveErrorMessages - [`3aea203`](https://github.com/doctrine/orm/commit/3aea203b9ca77df65f55f036080a9af653194cbf) Throw exception if target entity is not found. - [`5392737`](https://github.com/doctrine/orm/commit/5392737de422f1d68a9e135eb35985ba4b76b4ee) Improved and extracted UnitOfWork error messages - [`a8906ce`](https://github.com/doctrine/orm/commit/a8906ce572a7b2ac69aeb02d66581dfdded49f13) Stringify entity in all UnitOfWork exceptions - [`719e05e`](https://github.com/doctrine/orm/commit/719e05e53e9e376c7d4138a1d20070ece2cfc57b) Extract more messages into ORMInvalidArgumentException ### 📊 Changes **11 files changed** (+260 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Mapping/ClassMetadata.php` (+19 -0) 📝 `lib/Doctrine/ORM/Mapping/MappingException.php` (+5 -0) ➕ `lib/Doctrine/ORM/ORMInvalidArgumentException.php` (+107 -0) 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+22 -32) 📝 `tests/Doctrine/Tests/ORM/Functional/Locking/LockTest.php` (+1 -1) ➕ `tests/Doctrine/Tests/ORM/Functional/UnitOfWorkLifecycleTest.php` (+71 -0) 📝 `tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php` (+5 -1) 📝 `tests/Doctrine/Tests/ORM/Mapping/BasicInheritanceMappingTest.php` (+1 -0) 📝 `tests/Doctrine/Tests/ORM/Mapping/ClassMetadataFactoryTest.php` (+2 -2) 📝 `tests/Doctrine/Tests/ORM/Mapping/ClassMetadataTest.php` (+13 -2) 📝 `tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php` (+14 -1) </details> ### 📄 Description _No description provided_ --- <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:45 +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#7773