How can I use database transaction in cakephp3.4

On top of same page that Graziel write is:

use Cake\Datasource\ConnectionManager;
$connection = ConnectionManager::get('default');

so, try using ->begin() on connection.