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