doctrine/dbal — pull request #116 by nicolas-grekas (2012-02-18 11:10:30+00:00)
Title: Default fetch mode for Connection and fixing it for Statement classes

Resubmitting after renaming branches on my side.

CS should be ok.

Fixes default fetch mode inconsistencies on Statement classes.

Adds default fetch mode at Connection level, used for ->fetchAll() and for auto-setting default fetch mode on returned statements. Defaults to FETCH_ASSOC so that Connection->fetchAll() remains the same, but break nackward compatibility for returned statements, who used to default to FETCH_BOTH. The BC break still seams necessary to fix two things : first, it allows changing fetch mode for Connection->fetchAll(), then it makes returned statements consistent with Connection->fetchAll().