From 1153b9468ccfef452625064c66b4a135d0ea8a46 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Fri, 21 Jun 2024 13:31:45 +0200 Subject: [PATCH] Fix deprecated array access usage (#11517) --- src/Persisters/Collection/OneToManyPersister.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Persisters/Collection/OneToManyPersister.php b/src/Persisters/Collection/OneToManyPersister.php index 7354daa5627..0727b1f8a7e 100644 --- a/src/Persisters/Collection/OneToManyPersister.php +++ b/src/Persisters/Collection/OneToManyPersister.php @@ -174,9 +174,9 @@ private function deleteEntityCollection(PersistentCollection $collection): int if ($targetClass->isInheritanceTypeSingleTable()) { $discriminatorColumn = $targetClass->getDiscriminatorColumn(); - $statement .= ' AND ' . $discriminatorColumn['name'] . ' = ?'; + $statement .= ' AND ' . $discriminatorColumn->name . ' = ?'; $parameters[] = $targetClass->discriminatorValue; - $types[] = $discriminatorColumn['type']; + $types[] = $discriminatorColumn->type; } $numAffected = $this->conn->executeStatement($statement, $parameters, $types);