DDC-700: Proxy class is created for MappedSuperclass class #861

Closed
opened 2026-01-22 12:53:04 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 20, 2010).

Jira issue originally created by user gedrox:

When having abstract class as Mapped Superclass the proxy class is created without the "abstract" keyword which raises fatal PHP error "Class %proxyClassName% contains 1 abstract method and must therefore be declared abstract or implement the remaining methods" when read.

I think there is no need to generate the proxy classes for classes marked as @MappedSuperclass at all.

Originally created by @doctrinebot on GitHub (Jul 20, 2010). Jira issue originally created by user gedrox: When having abstract class as Mapped Superclass the proxy class is created without the "abstract" keyword which raises fatal PHP error "Class %proxyClassName% contains 1 abstract method and must therefore be declared abstract or implement the remaining methods" when read. I think there is no need to generate the proxy classes for classes marked as @MappedSuperclass at all.
admin added the Bug label 2026-01-22 12:53:04 +01:00
admin closed this issue 2026-01-22 12:53:05 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jul 20, 2010):

Comment created by gedrox:

Patch which adds the "abstract" keyword for problematic proxies

@doctrinebot commented on GitHub (Jul 20, 2010): Comment created by gedrox: Patch which adds the "abstract" keyword for problematic proxies
Author
Owner

@doctrinebot commented on GitHub (Aug 8, 2010):

Comment created by @beberlei:

Fixed, skip generation of proxies for mapped superclasses.

@doctrinebot commented on GitHub (Aug 8, 2010): Comment created by @beberlei: Fixed, skip generation of proxies for mapped superclasses.
Author
Owner

@doctrinebot commented on GitHub (Aug 8, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Aug 8, 2010): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 1 attachments from Jira into https://gist.github.com/29dadeb0e85fff8e66bf

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 1 attachments from Jira into https://gist.github.com/29dadeb0e85fff8e66bf - [10700_vcs-diff2497454792683211266.patch](https://gist.github.com/29dadeb0e85fff8e66bf#file-10700_vcs-diff2497454792683211266-patch)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#861