Two weird things in the Migration class which are closely linked, so filing just one issue:
1. This property is never set AFAICT:
/**
* The identifier map data.
*
* Used to initialize $idMapPlugin.
*
* @var array
*/
protected $idMap = [];
It's read in getIdMap():
$configuration = $this->idMap;
$plugin = $configuration['plugin'] ?? 'sql';
but as it's null, the 'sql' map plugin will always be used.
I don't know how to fix this.
2. getIdMap() and getIdMapPlugin() both return $this->idMapPlugin.
getIdMap() ensures the map plugin is instantiated first, whereas getIdMapPlugin() just returns it (and it might be NULL if you've not called getIdMap() already!
The fix here is probably to deprecate one of them?
Active
11.0 π₯