Fatal error: Call to a member function getKategoriler() on null in /home/ikikiz/public_html/src/AppBundle/Controller/SiteController.php on line 496
Error: Call to a member function getKategoriler() on null (500 Internal Server Error)

Symfony Exception

FatalErrorException

HTTP 500 Internal Server Error

Error: Call to a member function getKategoriler() on null

Exception

Symfony\Component\Debug\Exception\ FatalErrorException

  1.                 ->join('t.kategoriler''k')
  2.                 ->join('k.kategori''k2')
  3.                 ->orderBy('t.sira''asc')
  4.                 ->where('t.durum = 1');
  5.             if (count($kategori->getKategoriler()) > 0) {
  6.                 // GELEN KATEGORİNİN ALT KATEGORİSİ VARSA
  7.                 $urunler $urunler->andWhere('k2.id = :id')->setParameter('id'$kategori->getId());
  8.             } else {
  9.                 // GELEN KATEGORİNİN ALT KATEGORİSİ YOKSA
  10.                 $urunler $urunler->andWhere('k.id = :id')->setParameter('id'$kategori->getId());

Logs

No log messages

Stack Trace

FatalErrorException

Symfony\Component\Debug\Exception\FatalErrorException:
Error: Call to a member function getKategoriler() on null

  at src/AppBundle/Controller/SiteController.php:496