Fixed : Ticket #14
This commit is contained in:
parent
69e3a7112e
commit
94433f9034
@ -561,8 +561,11 @@ abstract class Doctrine_Session extends Doctrine_Configurable implements Countab
|
|||||||
if($increment) {
|
if($increment) {
|
||||||
if($k == 0) {
|
if($k == 0) {
|
||||||
// record uses auto_increment column
|
// record uses auto_increment column
|
||||||
|
|
||||||
$id = $table->getMaxIdentifier();
|
$id = $this->dbh->lastinsertid();
|
||||||
|
|
||||||
|
if( ! $id)
|
||||||
|
$id = $table->getMaxIdentifier();
|
||||||
}
|
}
|
||||||
|
|
||||||
$record->setID($id);
|
$record->setID($id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user