diff --git a/src/Application/Movie/Api.php b/src/Application/Movie/Api.php index 5fe225bb..d858d5d4 100644 --- a/src/Application/Movie/Api.php +++ b/src/Application/Movie/Api.php @@ -138,12 +138,12 @@ public function fetchHistoryOrderedByWatchedAtDesc(int $userId) : array return $this->historySelectService->fetchHistoryOrderedByWatchedAtDesc($userId); } - public function fetchWithActor(int $personId, int $userId) : EntityList + public function fetchWithActor(int $personId, int $userId) : array { return $this->movieSelectService->fetchWithActor($personId, $userId); } - public function fetchWithDirector(int $personId, int $userId) : EntityList + public function fetchWithDirector(int $personId, int $userId) : array { return $this->movieSelectService->fetchWithDirector($personId, $userId); } diff --git a/src/Application/Movie/Repository.php b/src/Application/Movie/Repository.php index eb27ac79..3313c519 100644 --- a/src/Application/Movie/Repository.php +++ b/src/Application/Movie/Repository.php @@ -424,15 +424,16 @@ public function fetchWithActor(int $personId, int $userId) : array { return $this->dbConnection->fetchAllAssociative( <<dbConnection->fetchAllAssociative( <<repository->fetchAllOrderedByLastUpdatedAtTmdbAsc(); } - public function fetchWithActor(int $personId, int $userId) : EntityList + public function fetchWithActor(int $personId, int $userId) : array { - return EntityList::createFromArray($this->repository->fetchWithActor($personId, $userId)); + return $this->repository->fetchWithActor($personId, $userId); } - public function fetchWithDirector(int $personId, int $userId) : EntityList + public function fetchWithDirector(int $personId, int $userId) : array { - return EntityList::createFromArray($this->repository->fetchWithDirector($personId, $userId)); + return $this->repository->fetchWithDirector($personId, $userId); } public function findById(int $movieId) : ?Entity diff --git a/templates/page/person.html.twig b/templates/page/person.html.twig index 92701277..ca89d566 100644 --- a/templates/page/person.html.twig +++ b/templates/page/person.html.twig @@ -57,13 +57,13 @@
- ...
- {% if movieAsActor.personalRating is not null %} + {% if movieAsActor.userRating is not null %} - {{ movieAsActor.personalRating }} + {{ movieAsActor.userRating }} {% endif %}
@@ -79,14 +79,13 @@
- ...
- - {% if movieAsDirector.personalRating is not null %} + {% if movieAsDirector.userRating is not null %} - {{ movieAsDirector.personalRating }} + {{ movieAsDirector.userRating }} {% endif %}