Fixed the use of the removed ClassMetadataInfo constants

This commit is contained in:
Jan Böhmer 2024-06-09 23:37:18 +02:00
parent 7d9be5ae76
commit 60325e797d
4 changed files with 11 additions and 11 deletions

View file

@ -25,7 +25,7 @@ namespace App\Repository;
use App\Doctrine\Helpers\FieldHelper;
use App\Entity\Attachments\AttachmentContainingDBElement;
use Doctrine\ORM\Mapping\ClassMetadataInfo;
use Doctrine\ORM\Mapping\ClassMetadata;
/**
* @template TEntityClass of AttachmentContainingDBElement
@ -70,7 +70,7 @@ class AttachmentContainingDBElementRepository extends NamedDBElementRepository
$q = $qb->getQuery();
$q->setFetchMode($this->getEntityName(), 'master_picture_attachment', ClassMetadataInfo::FETCH_EAGER);
$q->setFetchMode($this->getEntityName(), 'master_picture_attachment', ClassMetadata::FETCH_EAGER);
$result = $q->getResult();