Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

popular getTagline is empty #102

Closed
ghost opened this issue Sep 20, 2015 · 4 comments
Closed

popular getTagline is empty #102

ghost opened this issue Sep 20, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 20, 2015

i need to display the tagline from movies using popular but it returns empty results

<?php

namespace App\Http\Controllers;
use Tmdb\Repository\MovieRepository;

class HomeController extends Controller {

    private $movies;

    function __construct(MovieRepository $movies) {
        $this->movies = $movies;
    }

    public function index() {

        $movies = $this->movies->getPopular();

        foreach ($movies as $popular) {
            var_dump($popular->getTagline());
        }
        exit();
        return view('home', compact('movies'));
    }

}
@ghost ghost changed the title Model popular getTagline is empty popular getTagline is empty Sep 20, 2015
@ghost
Copy link
Author

ghost commented Sep 20, 2015

not only getTagline but some others as well :(

@ghost ghost closed this as completed Oct 8, 2015
@wtfzdotnet
Copy link
Member

Is this an actual ongoing issue?

@ghost
Copy link
Author

ghost commented Oct 11, 2015

i dont know i closed this issue because you already answered my issue in G+

@trovster
Copy link

I am getting an empty result when using getTagline() for a movie that has a tagline.

https://www.themoviedb.org/movie/565770-blue-beetle

Tmdb\Model\Movie {#4269 ▼ // app/Observers/Movie/WatchedObserver.php:202
  #alternativeTitles: Tmdb\Model\Common\GenericCollection {#3376 ▶}
  #changes: Tmdb\Model\Common\GenericCollection {#2878 ▶}
  #credits: Tmdb\Model\Collection\CreditsCollection {#1914 ▶}
  -externalIds: Tmdb\Model\Common\ExternalIds {#2484 ▶}
  #images: Tmdb\Model\Collection\Images {#3285 ▶}
  #keywords: Tmdb\Model\Common\GenericCollection {#4016 ▶}
  #lists: Tmdb\Model\Common\GenericCollection {#4206 ▶}
  #releases: Tmdb\Model\Common\GenericCollection {#3884 ▶}
  #release_dates: Tmdb\Model\Common\GenericCollection {#2329 ▶}
  #similar: Tmdb\Model\Common\GenericCollection {#3281 ▶}
  #recommendations: Tmdb\Model\Common\GenericCollection {#2143 ▶}
  #translations: Tmdb\Model\Common\GenericCollection {#3879 ▶}
  #reviews: null
  #videos: Tmdb\Model\Collection\Videos {#3472 ▶}
  -adult: false
  -backdropPath: "/ixZzr4PyM2TPs5fka3IJj058WYo.jpg"
  -backdrop: Tmdb\Model\Image\BackdropImage {#3787 ▶}
  -belongsToCollection: null
  -budget: null
  -genres: Tmdb\Model\Collection\Genres {#3143 ▶}
  -homepage: null
  -id: 565770
  -imdbId: null
  -originalTitle: "Blue Beetle"
  -originalLanguage: "en"
  -overview: "Recent college grad Jaime Reyes returns home full of aspirations for his future, only to find that home is not quite as he left it. As he searches to find his p ▶"
  -popularity: 342.803
  -poster: Tmdb\Model\Image\PosterImage {#3409 ▼
    #id: null
    #type: null
    -filePath: "/lZ2sOCMCcGaPppaXj0Wiv0S7A08.jpg"
    -width: null
    -height: null
    -iso6391: null
    -aspectRatio: null
    -voteAverage: null
    -voteCount: null
    -media: null
  }
  -posterPath: "/lZ2sOCMCcGaPppaXj0Wiv0S7A08.jpg"
  -productionCompanies: Tmdb\Model\Common\GenericCollection {#3294 ▶}
  -productionCountries: Tmdb\Model\Common\GenericCollection {#4355 ▶}
  -releaseDate: DateTime @1692144000 {#2604 ▶}
  -revenue: null
  -runtime: null
  -spokenLanguages: Tmdb\Model\Common\GenericCollection {#2074 ▶}
  -status: null
  -tagline: null
  -title: "Blue Beetle"
  -voteAverage: 6.918
  -voteCount: 279
  -watchProviders: Tmdb\Model\Common\GenericCollection {#4064 ▶}
}

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants