@DeepDiver1975 getParentId() is calling getId and there the $path get's normalized. I Think we need normalizing everywhere we use md5() to prevent duplicate path_hash. As I can see a un-normalized string in a sql query is always normalized by the database, but for this case I will provide a unit test, so we can be sure.