kaliop-uk / ezmigrationbundle

This bundle makes it easy to handle eZPlatform / eZPublish5 content upgrades/migrations
GNU General Public License v2.0
53 stars 81 forks source link

Unable to use the location remote id in location update migration #216

Closed jbcr closed 5 years ago

jbcr commented 5 years ago

For move namy contents, I use a migration in mode update with the type location. But I need use the location remote id for locate the new parent location (parent_location).

This bundle work in fact only with the location id or by reference. But the documentation indicates that it is possible to use the remote Id.

gggeek commented 5 years ago

I think I have found the cause of this.

Could you try changing line 187 in LocationManager.php from

$newParentLocation = $locationService->loadLocation($parentLocationId);

to

$newParentLocation = $this->matchLocationByKey($parentLocationId);

and see if it works?

jbcr commented 5 years ago

The new line $newParentLocation = $this->matchLocationByKey($parentLocationId); work fine.

gggeek commented 5 years ago

Fixed in 5.10.1