mardi 27 janvier 2015

Doctrine Inheritance Mapping design Pattern and performance

In my project i want to use Inheritance Mapping but i don't known how to use correctly this and if it's interesting for performance and design Pattern.


I 've got for exemple three entities


Event, EventFacebook, EventGoogle


I want to use Event as a MappedSuperclass and then have


Facebook and Google event's Entities as a child.


Those entities will contains specifics fields.


What should i use :



  • Use @InheritanceType("SINGLE_TABLE") and why ?

  • Use @InheritanceType("JOINED") and why ?

  • Do Not use Inheritance Mapping just empty fields and why ?


Thanks for your help.


Aucun commentaire:

Enregistrer un commentaire