Closed mquestionable closed 5 years ago
I'm not sure what you would expect of it. The point of an Entity Repository is to bundle and parametrize reusable queries centrally. The point of a QueryBuilder is to construct dynamic queries at runtime with flexible parameters. As DataTables inherently need to sort and filter dynamically the ORMAdapter plugs in at the QueryBuilder level where it can manage those things.
To integrate with repositories you're likely better of just using an ArrayAdapter as you wouldn't be using any of the "magic" that makes ORMAdapter tick.
Essentially duplicate of https://github.com/omines/datatables-bundle/issues/67 and same answer applies.
Hello,
Is there any example on how I can make this work with ORMAdapter when using EntityRepository? Ex. Controller
JobRepository
This with ->getResult() won't obviously work, I tried returning only query but nothing. I did succeeded with using ArrayAdapter and using
getArrayResult
to return but I need objects as I call some additional checks on models.Thanks