Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Incubator tree move a node not work

Root, lft=1, rgt=8

1.1, lft=2, rgt=3

1.2, lft=4, rgt=5

1.3, lft=6, rgt=7

I called.

$root = Categories::findFirst(1);

$x13 = Categories::findFirst(13);


It return There is no active transaction But database change

Root, lft=1, rgt=8

1.3, lft=2, rgt=3

1.1, lft=4, rgt=5

1.2, lft=6, rgt=7

How can fixed this code :(



in source code, function moveNode handle db connection.


$di->set('db', function () use ($config) { ........... }, true);

Sorry my mistake. This di db must shared