Commit 0062d9c3 authored by doctrine's avatar doctrine

Complete DQL rewrite, Fixed : Ticket #13

parent 94433f90
This diff is collapsed.
......@@ -74,7 +74,9 @@ abstract class Doctrine_Session extends Doctrine_Configurable implements Countab
/**
* the constructor
* @param PDO $pdo -- database handle
*
* @param Doctrine_Manager $manager the manager object
* @param PDO $pdo the database handler
*/
public function __construct(Doctrine_Manager $manager,PDO $pdo) {
$this->dbh = $pdo;
......@@ -562,7 +564,7 @@ abstract class Doctrine_Session extends Doctrine_Configurable implements Countab
if($k == 0) {
// record uses auto_increment column
$id = $this->dbh->lastinsertid();
$id = $this->dbh->lastInsertID();
if( ! $id)
$id = $table->getMaxIdentifier();
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment