Implemented a stub DeviceRepository to prevent exception when try to delete a device.

Now the devices can not be deleted (but no exception), to prevent users to accidentally delete still useful devices from old Part-DB versions (as currently it is not possible to view which infos a device contains). This fixes issue #60.
This commit is contained in:
Jan Böhmer 2020-08-21 23:28:46 +02:00
parent 37c076c4c8
commit 3809539587
2 changed files with 38 additions and 1 deletions

View file

@ -60,7 +60,7 @@ use InvalidArgumentException;
/**
* Class AttachmentType.
*
* @ORM\Entity(repositoryClass="App\Repository\StructuralDBElementRepository")
* @ORM\Entity(repositoryClass="App\Repository\Parts\DeviceRepository")
* @ORM\Table(name="`devices`")
*/
class Device extends AbstractPartsContainingDBElement