Skip to content
Discussion options

You must be logged in to vote

You can define more Node inside getNodeTypes() method to point to the correct target node, and using unset() to specific key of stmt, like what I did in laminas-servicemanager-migration, there is stmt_key for that:

https://github.com/laminas/laminas-servicemanager-migration/pull/131/files#diff-40da94022f21a80bb7c833406e6092f80e0015c1c7b8f0e2121102affedb86bd

You can also traverse with StmtsAwareInterface, with "beware", ensure that the stmt is the correct stmt_key by StmtsAwareInterface that wrap it, like what I did in cakephp/upgrade:

https://github.com/cakephp/upgrade/pull/236/files#diff-a0b234faceec43fc851a50273b309febcaeda01b537e32eb8f57fd7310496051

Assuming you're trying to remove a M…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by samsonasik
Comment options

You must be logged in to vote
2 replies
@timmipetit
Comment options

@samsonasik
Comment options

Comment options

You must be logged in to vote
1 reply
@timmipetit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #8000 on June 16, 2023 09:44.