Add Model::setAutoCommit
Merge pull request #1160 from njam/issue-1160

Add Model::setAutoCommit