Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Select problem #20

Open
carolinasolfernandez opened this issue Nov 12, 2015 · 0 comments
Open

Select problem #20

carolinasolfernandez opened this issue Nov 12, 2015 · 0 comments

Comments

@carolinasolfernandez
Copy link

When I make a select query, it only returns the first row.
If I make several select (same query), it returns more rows, until I got the right result.

Example:
$test = $em->getRepository('ExampleAppBundle:App')->findAll();
echo (count($test)); //Resturns 1 row
$test = $em->getRepository('ExampleAppBundle:App')->findAll();
$test = $em->getRepository('ExampleAppBundle:App')->findAll();
$test = $em->getRepository('ExampleAppBundle:App')->findAll();
echo (count($test)); //Resturns 10 rows

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

No branches or pull requests

1 participant