Commit 03839264 authored by gelbander's avatar gelbander

Changed fetchAssoc to fetchAll

fetchAssoc only returns one row. Thats what the sql query implicates.
parent 282628dc
...@@ -123,9 +123,9 @@ The first registered connection is the default and can simply be accessed as ...@@ -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, you would if there was only one connection. Given the above configuration,
these two lines are equivalent:: 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:: 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