Skip to content

Commit

Permalink
Fixing ResultCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Feb 16, 2014
1 parent 414be8b commit 3de1ad9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/Tmdb/Model/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Person extends AbstractModel implements PersonInterface {
/**
* @var ProfileImage
*/
private $profile;
private $profileImage;

/**
* @var Collection\CreditsCollection
Expand Down Expand Up @@ -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;
}

Expand All @@ -403,7 +403,7 @@ public function setProfileImage(ProfileImage $profile)
*/
public function getProfileImage()
{
return $this->profile;
return $this->profileImage;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Repository/MovieRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}
Expand Down

0 comments on commit 3de1ad9

Please sign in to comment.