mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 19:34:31 +02:00
Fixed PHPstan issue.
This commit is contained in:
parent
3d7fb4b460
commit
dea7ffcabd
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@ use App\Entity\Parts\Footprint;
|
||||||
use App\Entity\Parts\Manufacturer;
|
use App\Entity\Parts\Manufacturer;
|
||||||
use App\Entity\Parts\MeasurementUnit;
|
use App\Entity\Parts\MeasurementUnit;
|
||||||
use App\Entity\Parts\Part;
|
use App\Entity\Parts\Part;
|
||||||
|
use App\Repository\DBElementRepository;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
|
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
|
||||||
use Symfony\Component\Security\Core\Security;
|
use Symfony\Component\Security\Core\Security;
|
||||||
|
@ -50,6 +51,7 @@ final class PartsTableActionHandler
|
||||||
{
|
{
|
||||||
$id_array = explode(',', $ids);
|
$id_array = explode(',', $ids);
|
||||||
|
|
||||||
|
/** @var DBElementRepository $repo */
|
||||||
$repo = $this->entityManager->getRepository(Part::class);
|
$repo = $this->entityManager->getRepository(Part::class);
|
||||||
return $repo->getElementsFromIDArray($id_array);
|
return $repo->getElementsFromIDArray($id_array);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue