1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Merge pull request #804 from diego-mazzaro/master

[bugfix] if BIGINT or SMALLINT version field was not incremented.
This commit is contained in:
Guilherme Blanco 2013-09-30 07:46:35 -07:00
commit f02d18f465

View File

@ -464,7 +464,9 @@ class BasicEntityPersister
$params[] = $this->class->reflFields[$versionField]->getValue($entity);
switch ($versionFieldType) {
case Type::SMALLINT:
case Type::INTEGER:
case Type::BIGINT:
$set[] = $versionColumn . ' = ' . $versionColumn . ' + 1';
break;
@ -1974,4 +1976,4 @@ class BasicEntityPersister
$sql = implode(' AND ', $filterClauses);
return $sql ? "(" . $sql . ")" : ""; // Wrap again to avoid "X or Y and FilterConditionSQL"
}
}
}