[PR #1050] [CLOSED] DDC-3120 -- Catch ReflectionException for internal classes in ClassMetad... #9087

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/1050
Author: @jbottigliero
Created: 6/6/2014
Status: Closed

Base: masterHead: master


📝 Commits (3)

  • 9cdd495 DDC-3120 -- Catch ReflectionException for internal classes in ClassMetadataInfo
  • 64973c1 [DDC-3156] [DDC-3120] -- Added test case for entities extending SPL ArrayObject
  • 50fe372 Merge remote-tracking branch 'upstream/master'

📊 Changes

3 files changed (+50 additions, -5 deletions)

View changed files

📝 lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php (+5 -1)
tests/Doctrine/Tests/Models/DDC3120/DDC3120EntityOne.php (+32 -0)
📝 tests/Doctrine/Tests/ORM/EntityManagerTest.php (+13 -4)

📄 Description

...ataInfo

I’m having an issue in relation to http://www.doctrine-project.org/jira/browse/DDC-3120 — When using ReflectionClass#newInstanceWithoutConstructor(); I’m getting a ReflectionException due to the class not being internal… it’s resolveable by adding a try/catch to use ReflectionClass#newInstance. BUT, I’d like to know if there is something else going on here… running PHP 5.5.13


🔄 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/1050 **Author:** [@jbottigliero](https://github.com/jbottigliero) **Created:** 6/6/2014 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`9cdd495`](https://github.com/doctrine/orm/commit/9cdd495cd445bee46c451a1fba8c150679b415f8) DDC-3120 -- Catch ReflectionException for internal classes in ClassMetadataInfo - [`64973c1`](https://github.com/doctrine/orm/commit/64973c10c9ce114de9b144620dd339e18d38af5c) [DDC-3156] [DDC-3120] -- Added test case for entities extending SPL ArrayObject - [`50fe372`](https://github.com/doctrine/orm/commit/50fe3722575c5d41aa3936000dd2b4a32ab3e6c2) Merge remote-tracking branch 'upstream/master' ### 📊 Changes **3 files changed** (+50 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php` (+5 -1) ➕ `tests/Doctrine/Tests/Models/DDC3120/DDC3120EntityOne.php` (+32 -0) 📝 `tests/Doctrine/Tests/ORM/EntityManagerTest.php` (+13 -4) </details> ### 📄 Description ...ataInfo I’m having an issue in relation to http://www.doctrine-project.org/jira/browse/DDC-3120 — When using ReflectionClass#newInstanceWithoutConstructor(); I’m getting a ReflectionException due to the class not being internal… it’s resolveable by adding a try/catch to use ReflectionClass#newInstance. BUT, I’d like to know if there is something else going on here… running PHP 5.5.13 --- <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:03:08 +01:00
admin closed this issue 2026-01-22 16:03:09 +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#9087