Commit 5c3bea65 authored by zYne's avatar zYne

--no commit message

--no commit message
parent a20ceff3
...@@ -606,7 +606,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module ...@@ -606,7 +606,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
$id = $this->conn->sequence->lastInsertId($seq); $id = $this->conn->sequence->lastInsertId($seq);
if ( ! $id) { if ( ! $id) {
$id = $table->getMaxIdentifier(); throw new Doctrine_Connection_Exception("Couldn't get last insert identifier.");
} }
$record->assignIdentifier($id); $record->assignIdentifier($id);
...@@ -622,4 +622,4 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module ...@@ -622,4 +622,4 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
return true; return true;
} }
} }
\ No newline at end of file
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