Ich rufe eine Basismethode von ProductController::__construct()
.DoctrineBundle ist nicht in Ihrer Anwendung im Basiscontroller registriert
ProductController
erweitert BaseController
.
BaseController
erweitert Controller
.
Bellow Linie gibt es auch in BaseController
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
Während $this->getDoctrine()
Ausführung ist mir zeigt
Error: Call to a member function has() on null -- The DoctrineBundle is not registered in your application.
, die unten Bild zu sehen ist.
ich bin mit Symfony 2,7
Bitte fügen Sie Ihre 'app/config/config.yml' Datei – Mcsky
https://www.i.imgur.com/iKhVvSy.jpg https://www.i.imgur.com/nQRBqHH.jpg https://www.i.imgur.com/55kQp4b.jpg @Mcsky –