debesha / DoctrineProfileExtraBundle

Bundle to get information about doctrine hydration performance
MIT License
123 stars 16 forks source link

Add support for Doctrine ORM 3 #34

Open NanoSector opened 3 days ago

NanoSector commented 3 days ago

This allows installation on Doctrine ORM 3 and adjusts an overridden method for ORM 3 compatibility. Fixes #29

This is untested on ORM 2.

I am unsure how you'd like to handle this upgrade. In my opinion this can go either of two ways:

  1. We use the Symfony service container to dynamically swap between two implementations depending on what version is installed,
  2. We refactor the code to not override Doctrine methods to ensure compatibility (using middlewares instead?)

What do you think?