mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-19 13:50:01 +01:00
Fixed PHPstan issue.
This commit is contained in:
@@ -26,6 +26,7 @@ use App\Entity\Parts\Footprint;
|
||||
use App\Entity\Parts\Manufacturer;
|
||||
use App\Entity\Parts\MeasurementUnit;
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Repository\DBElementRepository;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
|
||||
use Symfony\Component\Security\Core\Security;
|
||||
@@ -50,6 +51,7 @@ final class PartsTableActionHandler
|
||||
{
|
||||
$id_array = explode(',', $ids);
|
||||
|
||||
/** @var DBElementRepository $repo */
|
||||
$repo = $this->entityManager->getRepository(Part::class);
|
||||
return $repo->getElementsFromIDArray($id_array);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user