How in YII2 Nested sets to make cloning of elements of one column in another?

I have to have templates of the finished structure in the project and when creating the work menu I have to drag and drop to duplicate the branch with the elements into the work menu

Please look at my picture I drew there as it should be.

I’ve been working on this task for a long time, I didn’t find anything worthwhile on the Internet about cloning branches

Even ready to change nested sets to something more suitable for me.

I would appreciate any help in my question.

I tried different things, did like here https://dbushell.com/Nestable/

But there everything goes through 1 table, and I have one table structure patterns, another working structure

Here is a picture (sorry in English)

Where it is written 'column' this is in my database a table and not a column, was wrong in the figure

Please give at least a direction to dig.

menu scheme

    0