mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-08 01:14:34 +02:00
Fixed the use of the removed ClassMetadataInfo constants
This commit is contained in:
parent
7d9be5ae76
commit
60325e797d
4 changed files with 11 additions and 11 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue