The problem is SOLVED , and it is not related to PDO, but the problem is with Symfony (one of the OutputDecorators that I think of, but don't know yet).
PDOStatement was valid, and when passing through it with the internal controller ->fetch everything was fine (14 records were extracted). After moving the same code to view the first record, they were always excluded from the results (and I think the associated output decoders use Iterator and ArrayAccess).
A quick workaround for this problem is NOT using a while loop , but using implemented Iterator and ArrayAccess , so the final code that works as expected (returns all lines) uses foreach
<?php foreach ($stats as $v): ?> <?php <?php endforeach; ?>
insted while + ->fetch() loop
<?php while ($v = $stats->fetch()): ?> <?php <?php endwhile; ?>
sbczk source share