We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have error after of create crud to a entity, in method getTotalOfRecordsString:
An exception occurred while executing 'SELECT COUNT(p0_.id) etc.
I add $queryBuilder->resetDQLPart('orderBy') before call method getTotalOfRecordsString.
This works ok in symfony 3.2.
public function indexAction(Request $request) { $em = $this->getDoctrine()->getManager(); $queryBuilder = $em->getRepository('AppProfitabilityPerFurnitureBundle:Section')->createQueryBuilder('e'); list($filterForm, $queryBuilder) = $this->filter($queryBuilder, $request); list($sections, $pagerHtml) = $this->paginator($queryBuilder, $request); $queryBuilder->resetDQLPart('orderBy'); $totalOfRecordsString = $this->getTotalOfRecordsString($queryBuilder, $request); return $this->render('AppProfitabilityPerFurnitureBundle:section:index.html.twig', array( 'sections' => $sections, 'pagerHtml' => $pagerHtml, 'filterForm' => $filterForm->createView(), 'totalOfRecordsString' => $totalOfRecordsString, )); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have error after of create crud to a entity, in method getTotalOfRecordsString:
An exception occurred while executing 'SELECT COUNT(p0_.id) etc.
I add $queryBuilder->resetDQLPart('orderBy') before call method getTotalOfRecordsString.
This works ok in symfony 3.2.
The text was updated successfully, but these errors were encountered: