DDC-3750: EntityGenerator::hasMethod returns true, if target class extends abstract with abstract target method #4602

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

Originally created by @doctrinebot on GitHub (May 29, 2015).

Originally assigned to: @Majkl578 on GitHub.

Jira issue originally created by user Lewik:

abstract class AbstractClass {
abstract public function getId();
}

I what to generate myEntity class that extends abstractClass (or implement interface with getId). myEntity have id and other properties and I what to generate setters/getters. EntityGenerator will skip generation getId method, because hasMethod will return true for abstract method.

Originally created by @doctrinebot on GitHub (May 29, 2015). Originally assigned to: @Majkl578 on GitHub. Jira issue originally created by user Lewik: abstract class AbstractClass { abstract public function getId(); } I what to generate myEntity class that extends abstractClass (or implement interface with getId). myEntity have id and other properties and I what to generate setters/getters. EntityGenerator will skip generation getId method, because hasMethod will return true for abstract method.
admin added the BugWon't Fix labels 2026-01-22 14:45:42 +01:00
admin closed this issue 2026-01-22 14:45:42 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jun 6, 2015):

Comment created by Lewik:

what is AWAITING FEEDBACK ?

@doctrinebot commented on GitHub (Jun 6, 2015): Comment created by Lewik: what is AWAITING FEEDBACK ?
Author
Owner

@Majkl578 commented on GitHub (Dec 19, 2017):

EntityGenerator is going to be removed in Doctrine 3.0.

@Majkl578 commented on GitHub (Dec 19, 2017): EntityGenerator is going to be removed in Doctrine 3.0.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4602