cakephp3でトランザクションをかけたくて以下のように記述しました。
ローカルのvagrant環境で実行しています。
PHP
1$connection = ConnectionManager::get('default'); 2$connection->begin();
しかしながら、begin()をしたあとに以下のようなエラーになります。
Warning: The connection is going to be closed but there is an active transaction. Warning: Warning (2): fwrite(): supplied resource is not a valid stream resource in [/vagrant/vendor/cakephp/cakephp/src/Console/ConsoleOutput.php, line 253] Trace:
原因がわからず困っております。
ご教示のほど、よろしくお願いいたします。
回答2件
あなたの回答
tips
プレビュー