Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony2][Sonata] No entity manager defined for class
escobar1983
post
Post #1





Grupa: Zarejestrowani
Postów: 198
Pomógł: 0
Dołączył: 31.01.2008

Ostrzeżenie: (0%)
-----


Witam serdecznie.
Zgodnie z dokumentacją uwtorzyłem wszystko pokolei
https://sonata-project.org/bundles/admin/2-3/doc/index.html

Dodałem w Admin DataChapterAdmin i przy otwierania "datachapter/list" schodzi mi błąd jak w tytule.

Dodam że Entity klasa istnieje

  1. namespace School\ChildBirthBundle\Entity;
  2.  
  3. use Doctrine\ORM\Mapping as ORM;
  4.  
  5. /**
  6.  * @ORM\Entity
  7.  * @ORM\Table(name="data_chapter")
  8.  */
  9. class DataChapter


admin.yml
  1. services:
  2. sonata.admin.datachapter:
  3. class: School\ChildBirthBundle\Admin\DataChapterAdmin
  4. tags:
  5. - { name: sonata.admin, manager_type: orm, group: "Content", label: "Chapter" }
  6. arguments:
  7. - ~
  8. - School\ChildBirthBundle\Entity\DataChapter
  9. - ~
  10. calls:
  11. - [ setTranslationDomain, [SchoolChildBirthBundle]]


Proszę o pomoc co jest nie tak.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.09.2025 - 19:29