How to check the path in the nested sets?

Nested sets is the category tree, which contains slug

it looks like this:
(it's slug)
- one
- - two
- - - three
- - three
- two


Ie the url at different levels of nesting can be repeated, maybe the path is still different

Can't figure out how to check whether the path to the correct category?
/one/two/three

How to get the three element given a full path, not making each section a separate request?

UPD I could obtain the last element (three), and to test his parents, but categories with slalom three are on the same nesting level, but with different parents
April 3rd 20 at 17:47
0 answer

Find more questions by tags SQLYiiNested set