Many Fixes

- Only commit if there are as many commits as beginTransaction
but immediatly rollback.

- Fix typo in setManyRelation

- Fix: setForeignKey with many relation and fix setOneRelation exception message