make the pdo fetch style configurable.

This commit is contained in:
Taylor Otwell
2012-02-24 11:35:02 -06:00
parent 9804bb55dc
commit 484a737382
3 changed files with 41 additions and 6 deletions

View File

@@ -16,6 +16,20 @@ return array(
'profile' => true,
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, you may wish to retrieve records as arrays
| instead of objects. Here you can control the PDO fetch style of the
| database queries run by your application.
|
*/
'fetch' => PDO::FETCH_CLASS,
/*
|--------------------------------------------------------------------------
| Default Database Connection
@@ -43,8 +57,6 @@ return array(
| so make sure you have the PDO drivers for your particlar database of
| choice installed on your machine.
|
| Drivers: 'mysql', 'pgsql', 'sqlsrv', 'sqlite'.
|
*/
'connections' => array(