DDC-3270: abstract class database entity generation #4049

Closed
opened 2026-01-22 14:34:21 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Aug 23, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user leckie:

I create an abstract class A using @ORM annotations, then create class B which is a subclass of class A. When I use these to update the mysql database, however, a table for class A was also generated, which shouldn't have happened(because class A is an abstract class).

Originally created by @doctrinebot on GitHub (Aug 23, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user leckie: I create an abstract class A using @ORM annotations, then create class B which is a subclass of class A. When I use these to update the mysql database, however, a table for class A was also generated, which shouldn't have happened(because class A is an abstract class).
admin added the Bug label 2026-01-22 14:34:21 +01:00
admin closed this issue 2026-01-22 14:34:21 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 19, 2014):

Comment created by @ocramius:

abstract types in the ORM are called MappedSuperclasses. The fact that a class is abstract doesn't mean that it has no concrete table representing it.

@doctrinebot commented on GitHub (Oct 19, 2014): Comment created by @ocramius: abstract types in the ORM are called `MappedSuperclass`es. The fact that a class is `abstract` doesn't mean that it has no concrete table representing it.
Author
Owner

@doctrinebot commented on GitHub (Oct 19, 2014):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Oct 19, 2014): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4049