I have a question about knp paginator. I use Symfony 2.8. I made a table that has composite primary key, and corresponding list page using knp paginator. I'm receiving the exception when I try to show. "Single id is not allowed on composite primary key in entity" I tried to inspect source files of knp paginator and doctrine. So I found a workaround.
1)Set knp option "distinct" to false;
2)Set following hints to query.
- set "knp_paginator.count" to rows count of query result.
- set "knp_paginator.fetch_join_collection" to false -- this is neccessary.
Is this right way? Are there potential problems?