title: Magento: How to filter bundle options by attribute set without looping
body: <p>Like this code from Inchoo:http://inchoo.net/ecommerce/magento/magento-get-bundled-items-by-bundle-product/</p>
  
  <pre><code>$bundled_product = new Mage_Catalog_Model_Product();
  $bundled_product-&gt;load(YOUR_BUNDLED_PRODUCT_ID);
  
  $selectionCollection = $bundled_product-&gt;getTypeInstance(true)-&gt;getSelectionsCollection(
      $bundled_product-&gt;getTypeInstance(true)-&gt;getOptionsIds($bundled_product), $bundled_product
  );
  
  $bundled_items = array();
  foreach($selectionCollection as $option)
  {
      $bundled_items[] = $option-&gt;product_id;
  }
  </code></pre>
  
  <p>How to get only specific options by specific attribute or attribute set</p>