[DDC-1052] Fix bug with versioning and inheritance
This commit is contained in:
parent
7e262dd42c
commit
e42a227a7c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user