I\'ve got a basic codeset like this (inside a controller):
$sql = \'select * from someLargeTable limit 1000\'; $em = $this->getDoctrine()->getManager(); $c
You can disable query buffer by doctrine config param options
doctrine: dbal: # configure these for your database server driver: 'pdo_mysql' ... options: 1000: false