DDC-1262: Have proxies copy docblocks aswell #1590

Open
opened 2026-01-22 13:19:10 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 9, 2011).

Originally assigned to: @Majkl578 on GitHub.

Jira issue originally created by user @beberlei:

Whenever a Proxy is generated it does not copy the docblocks.

This means when you do something like "$refl = new ReflectionObject($proxy)" you might be in trouble.

However if we add docblocks then we have to make sure that proxies do not magically appear as entities by throwing an exception in the AnnotationDriver.

Originally created by @doctrinebot on GitHub (Jul 9, 2011). Originally assigned to: @Majkl578 on GitHub. Jira issue originally created by user @beberlei: Whenever a Proxy is generated it does not copy the docblocks. This means when you do something like "$refl = new ReflectionObject($proxy)" you might be in trouble. However if we add docblocks then we have to make sure that proxies do not magically appear as entities by throwing an exception in the AnnotationDriver.
admin added the ImprovementWon't Fix labels 2026-01-22 13:19:10 +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#1590