diff --git a/src/LukeSnowden/GoogleShoppingFeed/Feed.php b/src/LukeSnowden/GoogleShoppingFeed/Feed.php index 7129edf..2558228 100644 --- a/src/LukeSnowden/GoogleShoppingFeed/Feed.php +++ b/src/LukeSnowden/GoogleShoppingFeed/Feed.php @@ -115,8 +115,9 @@ private function channel() { public function createItem() { $this->channel(); $item = new Item; - $this->items[] = $item; - $item->setIndex( count($this->items)-1 ); + $index = 'index_' . md5( microtime() ); + $this->items[$index] = $item; + $item->setIndex( $index ); return $item; }