I have a strange problem, which gives me the feeling i missed some concept:
In an observer triggered via event dispatch <catalog_product_collection_load_before>
i fetch the collection and do a join:
$select->joinLeft(
array('partner_stock' => Mage::getSingleton('core/resource')->getTableName('xxx_partner_stock')),
"`e`.`sku`=`partner_stock`.`sku` AND `partner_stock`.`customer_id`={$partnerId}",
array('stock_id'=>'stock_id')
);
In a later observer listening to <catalog_product_collection_load_after>
i fetch the select and its missing the join. Any clou why?
reset()
against the select object, have you looked for that?