Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow migrate:import's --delete option to function #5063

Open
wants to merge 1 commit into
base: 11.x
Choose a base branch
from

Conversation

chrisolof
Copy link

Dispatch the event name onMissingSourceRows is listening for.

Resolves #5062.

Dispatch the event name onMissingSourceRows is listening for.

drush-opsgh-5062
@@ -259,7 +259,7 @@ protected function handleMissingSourceRows(MigrationInterface $migration): void

if ($destinationIds) {
$missingSourceEvent = new MigrateMissingSourceRowsEvent($migration, $destinationIds);
$this->getEventDispatcher()->dispatch($missingSourceEvent);
$this->getEventDispatcher()->dispatch($missingSourceEvent, MigrateMissingSourceRowsEvent::class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisolof, thank you for this catch. I think it should work also without the 2nd parameter. Could you try?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I think I’m wrong. Will look during the weekend

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this @chrisolof and @claudiu-cristea, it seems like this feature should ideally work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

migrate:import --delete flag not functioning in 11.x
3 participants