1

我有一个实体Sessions,其中 PK 也是引用User表的 FK。在 EasyAdmin 列表视图页面中Sessions,我得到一个 Symfony 运行时异常(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.").

Sessions表格是这样的:

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

学生和导师 ID 都是User表的 FK

4

0 回答 0