I want to set the root category of a new batch created store.
I'm looking for something like :
But it looks like it does not exists, despite there is a $store->getRootCategory() method.
I found a method in the Category Model: $category->setStoreId($storeId) but since a Category may be used by several stores as root category, it's probably not the right way do it ? is it ?
I'm a bit lost on that case, any help would be appreciated !