{"action":"closed","issue":{"url":"https://api.github.com/repos/creocoder/yii2-nested-sets/issues/14","labels_url":"https://api.github.com/repos/creocoder/yii2-nested-sets/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/creocoder/yii2-nested-sets/issues/14/comments","events_url":"https://api.github.com/repos/creocoder/yii2-nested-sets/issues/14/events","html_url":"https://github.com/creocoder/yii2-nested-sets/issues/14","id":30369196,"number":14,"title":"On Many Roots tree, the nested set seem not work","user":{"login":"dinhtrung","id":137198,"avatar_url":"https://avatars.githubusercontent.com/u/137198?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhtrung","html_url":"https://github.com/dinhtrung","followers_url":"https://api.github.com/users/dinhtrung/followers","following_url":"https://api.github.com/users/dinhtrung/following{/other_user}","gists_url":"https://api.github.com/users/dinhtrung/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhtrung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhtrung/subscriptions","organizations_url":"https://api.github.com/users/dinhtrung/orgs","repos_url":"https://api.github.com/users/dinhtrung/repos","events_url":"https://api.github.com/users/dinhtrung/events{/privacy}","received_events_url":"https://api.github.com/users/dinhtrung/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/creocoder/yii2-nested-sets/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"creocoder","id":896494,"avatar_url":"https://avatars.githubusercontent.com/u/896494?v=3","gravatar_id":"","url":"https://api.github.com/users/creocoder","html_url":"https://github.com/creocoder","followers_url":"https://api.github.com/users/creocoder/followers","following_url":"https://api.github.com/users/creocoder/following{/other_user}","gists_url":"https://api.github.com/users/creocoder/gists{/gist_id}","starred_url":"https://api.github.com/users/creocoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creocoder/subscriptions","organizations_url":"https://api.github.com/users/creocoder/orgs","repos_url":"https://api.github.com/users/creocoder/repos","events_url":"https://api.github.com/users/creocoder/events{/privacy}","received_events_url":"https://api.github.com/users/creocoder/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2014-03-28T08:10:45Z","updated_at":"2015-01-01T07:00:00Z","closed_at":"2015-01-01T07:00:00Z","body":"Try the following sample data:\r\n\r\n~~~\r\n-- Root1\r\n-- -- Branch1\r\n-- -- -- Leaf1\r\n-- Root2\r\n~~~\r\nNow move Root2 to Leaf1 then move it back to root once again.\r\n\r\nThis time, using Tree::find()->roots()->all() will only list Root1 as the root node.\r\n\r\nAlso the descendants() and ancestors() not working any more.\r\n\r\nAny suggestion on fixing this?"}}