I am using PDO for the first time with MySQL, just playing with it at the moment.
So far when I try to do an insert wrapped in transactions...
$this-&
You have to ask for the lastInsertId() before you commit a transaction
lastInsertId()
transaction
Try
$this->dbh->beginTransaction(); // $sql query ran echo $this->dbh->lastInsertId(); $this->dbh->commit();