resource->get('ledstarband', 1, 100); if (empty ($result['items']) ) { Log::info('Post import failed: no items found'); } # echo "\nFound items: ".$result['count']."\n"; // foreach ($result['items'] as $item) { // $post = $this->mapper->map($item); // if(! $post->isEmpty()) { // # print_r($post->toArray()); // } // } $res = $this->resource->getById('-93243530_2113'); foreach ($res as $item) { $post = $this->mapper->map($item); if(! $post->isEmpty()) { print_r($post->toArray()); } } # print_r($res); } }