« Previous | Next » 

Revision 844ea8ec

ID844ea8ecbf4dcfaeaa50b24d60726f2ac5f08493
Parent fc57a00d

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.

Background:

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.

In addition this adjusts the ``getPackageKeyFromMigrationVersion()``
of the ``Doctrine\Service`` not to rely on ``getPackageOfObject()``
as all doctrine migrations reside in the ``TYPO3\Flow`` namespace.

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

  • added
  • modified
  • copied
  • renamed
  • deleted