I'm trying to add a custom category attribute to the category collection:
$product = Mage::getModel('catalog/product');
$product->setId($productId);
$categories = $product->getResource()
->getCategoryCollection($product)
->addAttributeToSelect('some_custom_attribute');
However, some_custom_attribute
doesn't get included to the collection data:
[4] => array(11) {
["entity_id"] => string(4) "1164"
["entity_type_id"] => string(1) "3"
["attribute_set_id"] => string(1) "3"
["parent_id"] => string(4) "1151"
["created_at"] => string(19) "2015-04-14 06:19:05"
["updated_at"] => string(19) "2015-04-14 06:19:05"
["path"] => string(13) "1/2/1151/1164"
["position"] => string(1) "3"
["level"] => string(1) "3"
["children_count"] => string(1) "0"
["product_id"] => string(6) "106224"
How can I add the some_custom_attribute
to the result?