diff --git a/lib/Tmdb/Factory/ListFactory.php b/lib/Tmdb/Factory/ListFactory.php index 987f9a98..ee691bc2 100644 --- a/lib/Tmdb/Factory/ListFactory.php +++ b/lib/Tmdb/Factory/ListFactory.php @@ -53,13 +53,10 @@ public function create(array $data = array()) } /** Images */ - if (array_key_exists('backdrop_path', $data)) { - $lists->setBackdropImage($this->getImageFactory()->createFromPath($data['backdrop_path'], 'backdrop_path')); - } - if (array_key_exists('poster_path', $data)) { $lists->setPosterImage($this->getImageFactory()->createFromPath($data['poster_path'], 'poster_path')); } + return $this->hydrate($lists, $data); } diff --git a/lib/Tmdb/Model/Lists.php b/lib/Tmdb/Model/Lists.php index 0e441eed..70dcafb8 100644 --- a/lib/Tmdb/Model/Lists.php +++ b/lib/Tmdb/Model/Lists.php @@ -68,11 +68,6 @@ class Lists extends AbstractModel { */ private $posterImage; - /** - * @var BackdropImage - */ - private $backdropImage; - public static $_properties = array( 'created_by', 'description', @@ -268,22 +263,4 @@ public function getPosterPath() { return $this->posterPath; } - - /** - * @param \Tmdb\Model\Image\BackdropImage $backdropImage - * @return $this - */ - public function setBackdropImage($backdropImage) - { - $this->backdropImage = $backdropImage; - return $this; - } - - /** - * @return \Tmdb\Model\Image\BackdropImage - */ - public function getBackdropImage() - { - return $this->backdropImage; - } }