Basically i am adding a custom category the problem is when i add two child category with same NAME in to one parent category where child category is already present then this shows error of URL KEY.
My code is
$category->setPath($parentCategory->getPath())
->setParentId($parentId)
->setName('test1')
->setIsActive(true);
$category->save();
Is it possible to add two categories with same NAME in one parent category? thanks in advance