Fixed an old doctrine-bug regarding migrations

If autocommit is set to false, the updating of the version now gets comitted.

For additional information, look here: http://www.doctrine-project.org/jira/browse/DC-1022