Commit 33903336 authored by Fabien Potencier's avatar Fabien Potencier

minor #4 Changed fetchAssoc to fetchAll (gelbander)

This PR was merged into the 1.2.x-dev branch.

Discussion
----------

Changed fetchAssoc to fetchAll

fetchAssoc only returns one row. Thats what the sql query implicates.

Commits
-------

03839264 Changed fetchAssoc to fetchAll
parents c119f90e 03839264
......@@ -123,9 +123,9 @@ The first registered connection is the default and can simply be accessed as
you would if there was only one connection. Given the above configuration,
these two lines are equivalent::
$app['db']->fetchAssoc('SELECT * FROM table');
$app['db']->fetchAll('SELECT * FROM table');
$app['dbs']['mysql_read']->fetchAssoc('SELECT * FROM table');
$app['dbs']['mysql_read']->fetchAll('SELECT * FROM table');
Using multiple connections::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment