1

I have an entity Sessions where the PK is also the FK referencing a User table. In the EasyAdmin list view page for Sessions, I'm getting a Symfony runtime exception (Twig_Error_Runtime):

An exception has been thrown during the rendering of a template ("Paginating an entity with foreign key as identifier only works when using the Output Walkers. Call Paginator#setUseOutputWalkers(true) before iterating the paginator.").

The Sessions table is like this:

student (FK, PK) | mentor_id (FK) | start | end

Both student and mentor_id are FKs to the User table

Sagar Limaye
  • 49
  • 1
  • 12
  • I'm having this same problem. Did you find a solution? – Yep_It's_Me Jul 11 '17 at 05:08
  • No I didn't. I soon realized I don't need the student to be both FK and PK so I went with a revised design. I also disabled the new and edit views for this entity because I don't need it. Everything works ok. – Sagar Limaye Jul 11 '17 at 05:10
  • I couldn't trace the source of the problem either, sorry. It seems nobody faced this problem before or knows why this is happening. – Sagar Limaye Jul 11 '17 at 05:12

0 Answers0