From 5c3bea6584cd593b112c8b853e005bf6f57be194 Mon Sep 17 00:00:00 2001 From: zYne Date: Sat, 6 Oct 2007 19:10:14 +0000 Subject: [PATCH] --- lib/Doctrine/Connection/UnitOfWork.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Connection/UnitOfWork.php b/lib/Doctrine/Connection/UnitOfWork.php index d8effa1c8..e679f96b6 100644 --- a/lib/Doctrine/Connection/UnitOfWork.php +++ b/lib/Doctrine/Connection/UnitOfWork.php @@ -606,7 +606,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module $id = $this->conn->sequence->lastInsertId($seq); if ( ! $id) { - $id = $table->getMaxIdentifier(); + throw new Doctrine_Connection_Exception("Couldn't get last insert identifier."); } $record->assignIdentifier($id); @@ -622,4 +622,4 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module return true; } -} \ No newline at end of file +}