This commit is contained in:
parent
a20ceff363
commit
5c3bea6584
@ -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…
x
Reference in New Issue
Block a user