startSetup(); $installer->run(" UPDATE `{$installer->getTable('catalog/product')}` SET `has_options` = '1' WHERE (entity_id IN ( SELECT parent_product_id FROM `{$installer->getTable('bundle/selection')}` GROUP BY parent_product_id )); "); $installer->endSetup();