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) ); }