DDC-1448: Add a base entity to allow users to skip writing boilerplate code #1817

Closed
opened 2026-01-22 13:27:00 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 22, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

For forward compatibility with https://gist.github.com/1034079 we want to add a "BaseEntity" into the core that handles boilerplate code through implementing "**call" and using the metadata to generate getter/setter/adder/is methods on the fly.

Originally created by @doctrinebot on GitHub (Oct 22, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: For forward compatibility with https://gist.github.com/1034079 we want to add a "BaseEntity" into the core that handles boilerplate code through implementing "**call" and using the metadata to generate getter/setter/adder/is methods on the fly.
admin added the Improvement label 2026-01-22 13:27:00 +01:00
admin closed this issue 2026-01-22 13:27:02 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 30, 2011):

Comment created by @asm89:

Had some discussion about this on IRC:

  • the BaseEntity shouldn't do **callStatic since there are already repositories that do stuff like this
  • for php 5.3 it would be shipped as a class that can be extended
  • maybe some task that generates the trait from the class or the other way around
@doctrinebot commented on GitHub (Oct 30, 2011): Comment created by @asm89: Had some discussion about this on IRC: - the BaseEntity shouldn't do **callStatic since there are already repositories that do stuff like this - for php 5.3 it would be shipped as a class that can be extended - maybe some task that generates the trait from the class or the other way around
Author
Owner

@doctrinebot commented on GitHub (Nov 19, 2011):

Comment created by @beberlei:

Implemented in Doctrine\Common\Persistence\PersistentObject.

This can be generically used by all ObjectManagers.

@doctrinebot commented on GitHub (Nov 19, 2011): Comment created by @beberlei: Implemented in Doctrine\Common\Persistence\PersistentObject. This can be generically used by all ObjectManagers.
Author
Owner

@doctrinebot commented on GitHub (Nov 19, 2011):

Issue was closed with resolution "Fixed"

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

No dependencies set.

Reference: doctrine/archived-orm#1817