$connection->begin(); var_dump($connection->isUnderTransaction()); //true
public function isUnderTransaction();