In order to be able to use id (and so parentId) as string I would like
to check the left property to discover if a node is root, because 0 ==
'an-id-string' is true in php.
Also the parentId can be null.
Coverage remained the same at 97.992% when pulling 72e2f9f41b331c3a24ca4a1a89a81809ed4494e1 on silvadanilo:improved_is_root_method into adee3c27c29309b1ff635e56d0d29bde32105dd1 on bartko-s:master.
In order to be able to use
id
(and soparentId
) as string I would like to check theleft
property to discover if a node is root, because 0 == 'an-id-string' is true in php. Also the parentId can be null.