The only way
is that if the code crashes between the ArticleView creation and the Article.views increment.
But if you want to stick with transaction you have to do what the error message tells you to do
The only way
is that if the code crashes between the ArticleView creation and the Article.views increment.
But if you want to stick with transaction you have to do what the error message tells you to do