When loading values from a custom table I am joining the table twice. The first joing is to load the value for the default store and and the second joing is to load the store specific value. This is done in a similar way to the
My issue is that I have a problem with having hard coded values in functions. So having the
store_id = 0 in this function does not sit correctly with me. So I went looking for a constant that could be used for the default value's store id. I was able to find
Mage_Core_Model_App::ADMIN_STORE_ID which is the admin store id.
Is this the correct value to use? My confusion comes as the core code simply hard codes a 0 in place. Is the store_id set on default values really the admin store or is it just a nice coincidence that they are both 0?