Since Categories are EAV Models, they also have an attribute set. All categories, which are created from the admin panel get the default attribute set. This is set by the controller (\Mage_Adminhtml_Catalog_CategoryController::saveAction
).
On the other side, when I create a category programatically and don't set the attribute set id, the id 0
is saved to the entity table. The category is shown in frontend and backend anyway and seems to have all attributes.
Also the import module Avs_Fastsimpleimport
hardcodes the attribute set id to 0
in the category import (\AvS_FastSimpleImport_Model_Import_Entity_Category::_saveCategories
).
It seems that the attribute set id of categories doesn't matter. So what purpose has this and should I set the attribute set id when I create categories programmatically?