mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-07 15:59:35 +00:00
Use imports instead of FQNs
This commit is contained in:
parent
f63b6d7207
commit
5629215ce4
179 changed files with 792 additions and 597 deletions
|
|
@ -53,7 +53,7 @@ class ValidPartLotValidator extends ConstraintValidator
|
|||
}
|
||||
|
||||
//We can only validate the values if we know the storelocation
|
||||
if ($value->getStorageLocation() instanceof \App\Entity\Parts\Storelocation) {
|
||||
if ($value->getStorageLocation() instanceof Storelocation) {
|
||||
$repo = $this->em->getRepository(Storelocation::class);
|
||||
//We can only determine associated parts, if the part have an ID
|
||||
//When the storage location is new (no ID), we can just assume there are no other parts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue