« Previous | Next » 

Revision 9128a7f1


Added by Bastian Waidelich almost 8 years ago

[BUGFIX] Make getPackageOfObject() work for proxy objects

The method ``PackageManager::getPackageOfObject()`` failed to
resolve the package of a given object if it was a proxy.

This change fixes this by comparing the namespace of the object
with the package namespaces rather than the file locations.


The Flow/Doctrine proxy classes usually reside in a folder underneath
``Data/Temporary``. Comparing those paths with the package root paths
led to invalid results.

Change-Id: I49cf6615b15f4414193d4b563dfe11169fcf44b7
Fixes: #55309
Releases: master, 2.0, 2.1

  • added
  • modified
  • copied
  • renamed
  • deleted