Skip to content

Commit

Permalink
fix ClassMetadataInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
usu committed Jul 9, 2024
1 parent bda4bbc commit 74eabba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/HttpCache/PurgeHttpCacheListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
use Doctrine\ORM\Event\OnFlushEventArgs;
use Doctrine\ORM\Event\PreUpdateEventArgs;
use Doctrine\ORM\Mapping\AssociationMapping;
use Doctrine\ORM\Mapping\ClassMetadataInfo;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\PersistentCollection;
use FOS\HttpCacheBundle\CacheManager;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
Expand Down Expand Up @@ -121,7 +121,7 @@ public function postFlush(): void {
private function addTagsForManyToManyRelations($collection, $entities) {
$associationMapping = $collection->getMapping();

if (ClassMetadataInfo::MANY_TO_MANY !== $associationMapping['type']) {
if (ClassMetadata::MANY_TO_MANY !== $associationMapping['type']) {
return;
}

Expand Down

0 comments on commit 74eabba

Please sign in to comment.