Skip to content

Commit

Permalink
Fix deprecated array access usage (#11517)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored Jun 21, 2024
1 parent 428032c commit 1153b94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Persisters/Collection/OneToManyPersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1153b94

Please sign in to comment.