Skip to content
New issue

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

Ukol 2 - Milan Stanek #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mistacms
Copy link

Milan Stanek - Pridanie strankovania do zoznamu po 9.

@vasekboch vasekboch changed the title Milan Stanek - strankovani seznamu po 9 Ukol 2 - Milan Stanek Oct 16, 2016

$paginator = $this->get('knp_paginator');
$em = $this->getDoctrine()->getManager();
$all = $em->getRepository(Product::class)->findAll();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tady pozor tohle ti vytáhne celou tabulku do paměti. To není zrovna efektivní. Při pár tisících položek a pár requestech ti umře jakýkoliv server. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants