This commit is contained in:
parent
a20ceff363
commit
5c3bea6584
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue