I have added a custom attribute "flag" to the product. But when I try to access the data using $product->getData('flag');. Its returning null.
I find some way to load custom attribute in the stackexchange by calling raw attribute function.
But when I checked the product object it contain about 43 attributes, includes name, id, thumbnail, type_id etc., so is there a way to configure magento to collect my custom attribute also when it loads other 43 attributes.