diff --git a/src/Entity/Journey.php b/src/Entity/Journey.php index f1801da..924dce6 100644 --- a/src/Entity/Journey.php +++ b/src/Entity/Journey.php @@ -24,10 +24,9 @@ public static function get(Bookboon $bookboon, string $journeyId) : BookboonResp if (count($journeyEntity->getBookIds()) > 0) { $books = Book::getMultiple($bookboon, $journeyEntity->getBookIds(), false); + $journeyEntity->setBooks($books->getEntityStore()->get()); } - $journeyEntity->setBooks($books->getEntityStore()->get()); - $bResponse->setEntityStore( new EntityStore( [