/** * Add filtration by customer id * * @param int $customerId * @return Enterprise_Wishlist_Model_Resource_Item_Collection */ public function addCustomerIdFilter($customerId) { parent::addCustomerIdFilter($customerId); $adapter = $this->getConnection(); $defaultWishlistName = Mage::helper('wishlist')->getDefaultWishlistName(); $this->getSelect()->columns(array('wishlist_name' => $adapter->getIfNullSql('wishlist.name', $adapter->quote($defaultWishlistName)))); $this->addFilterToMap('wishlist_name', $adapter->getIfNullSql('wishlist.name', $adapter->quote($defaultWishlistName))); return $this; }