« Previous | Next » 

Revision a24c6837

Parent c4b5ced6

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.

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