Skip to content


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

doctrinebot opened this Issue · 3 comments

2 participants


Jira issue originally created by user @beberlei:

For forward compatibility with 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.


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

Comment created by @beberlei:

Implemented in Doctrine\Common\Persistence\PersistentObject.

This can be generically used by all ObjectManagers.


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.2 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.