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

[DDC-1052] Fix bug with versioning and inheritance

This commit is contained in:
Benjamin Eberlei 2011-03-20 13:07:47 +01:00
parent 7e262dd42c
commit e42a227a7c

View File

@ -375,7 +375,7 @@ class BasicEntityPersister
$result = $this->_conn->executeUpdate($sql, $params, $types);
if ($this->_class->isVersioned && ! $result) {
if ($versioned && ! $result) {
throw OptimisticLockException::lockFailed($entity);
}
}