transaction callback added

Added transaction callback shortcut . Related with [this](https://github.com/yiisoft/yii2/issues/3384) issue 
Normally `updateArticles()` probably do not need to be wrapped in a transaction. But in some complicated scenarios, this is needed. And it is not suitable to use closure because we have several similar scenarios.