fix: Properly generate parent string in getPrimaryKeyValue