From 3de1ad974a4377efb85220a8b5246cdbb5085799 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sun, 16 Feb 2014 19:58:12 +0100 Subject: [PATCH] Fixing ResultCollection --- lib/Tmdb/Model/Person.php | 10 +++++----- lib/Tmdb/Repository/MovieRepository.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Tmdb/Model/Person.php b/lib/Tmdb/Model/Person.php index 91a647fc..93050924 100644 --- a/lib/Tmdb/Model/Person.php +++ b/lib/Tmdb/Model/Person.php @@ -73,7 +73,7 @@ class Person extends AbstractModel implements PersonInterface { /** * @var ProfileImage */ - private $profile; + private $profileImage; /** * @var Collection\CreditsCollection @@ -389,12 +389,12 @@ public function getProfilePath() } /** - * @param ProfileImage $profile + * @param ProfileImage $profileImage * @return $this */ - public function setProfileImage(ProfileImage $profile) + public function setProfileImage(ProfileImage $profileImage) { - $this->profile = $profile; + $this->profileImage = $profileImage; return $this; } @@ -403,7 +403,7 @@ public function setProfileImage(ProfileImage $profile) */ public function getProfileImage() { - return $this->profile; + return $this->profileImage; } /** diff --git a/lib/Tmdb/Repository/MovieRepository.php b/lib/Tmdb/Repository/MovieRepository.php index 4c22b3a1..9f22b22a 100644 --- a/lib/Tmdb/Repository/MovieRepository.php +++ b/lib/Tmdb/Repository/MovieRepository.php @@ -289,7 +289,7 @@ public function getNowPlaying(array $options = array()) */ public function getPopular(array $options = array()) { - return $this->createCollection( + return $this->getFactory()->createResultCollection( $this->getApi()->getPopular($options) ); }