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

Closed
doctrinebot opened this Issue Oct 22, 2011 · 3 comments

2 participants

@doctrinebot

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.

@doctrinebot

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

Comment created by @beberlei:

Implemented in Doctrine\Common\Persistence\PersistentObject.

This can be generically used by all ObjectManagers.

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.2 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment