BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Asset path not available in rawData #45

Open dgtls-dev opened 2 years ago

dgtls-dev commented 2 years ago

While exporting parent assets I want to get the path of the child asset stored in a custom property ('artbox') of the parent asset. So in pimcore I can access the child asset's path in the following way: ParentAsset->getProperty('artbox')->getPath().

However, during the export if I run parentAsset:properties I get the following JSON

5bd573c4-d4d9-45bf-aebb-f3330ef3fd7e

The path is null, although there is an asset in the 'artbox' property. Am I missing something? How can I access the path of the 'artbox' asset?

Thank you

BlackbitDevs commented 2 years ago

Please try the data query selector property#artbox:path. Properties are lazy-loaded, that is why you get the cid of the referenced artbox element but not the cpath.