transaction callback added

Added transaction callback shortcut . Related with [this](https://github.com/yiisoft/yii2/issues/3384) issue 
Instead of passing `$transaction`, perhaps passing `$db` is more useful. We can get the current transaction from `$db` easily anyway.