You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the code, only assets used in actual asset properties are added to the usage index.
Properties of type array<Neos\Media\Domain\Model\ImageInterface> or CustomAssetType are ignored.
More importantly, assets referenced in string properties (via asset://<uuid>) are ignored as well.
The original \Neos\Neos\Domain\Strategy\AssetUsageInNodePropertiesStrategy does that more reliably.
I would suggest to use the original mechanism to determine usages (using \Neos\ContentRepository\Domain\Repository\NodeDataRepository::findNodesByPathPrefixAndRelatedEntities()) if that's not too slow
The text was updated successfully, but these errors were encountered:
Looking at the code, only assets used in actual asset properties are added to the usage index.
Properties of type
array<Neos\Media\Domain\Model\ImageInterface>
orCustomAssetType
are ignored.More importantly, assets referenced in
string
properties (viaasset://<uuid>
) are ignored as well.The original
\Neos\Neos\Domain\Strategy\AssetUsageInNodePropertiesStrategy
does that more reliably.I would suggest to use the original mechanism to determine usages (using
\Neos\ContentRepository\Domain\Repository\NodeDataRepository::findNodesByPathPrefixAndRelatedEntities()
) if that's not too slowThe text was updated successfully, but these errors were encountered: