[Cache] fix compat with doctrine/dbal v3
This commit is contained in:
parent
e26d5f217b
commit
0f76308929
|
@ -337,9 +337,9 @@ trait PdoTrait
|
|||
}
|
||||
|
||||
foreach ($serialized as $id => $data) {
|
||||
$stmt->execute();
|
||||
$result = $stmt->execute();
|
||||
|
||||
if (null === $driver && !$stmt->rowCount()) {
|
||||
if (null === $driver && !($result instanceof Result ? $result : $stmt)->rowCount()) {
|
||||
try {
|
||||
$insertStmt->execute();
|
||||
} catch (DBALException $e) {
|
||||
|
|
Reference in New Issue