mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-07 17:04:30 +02:00
Renamed the base DBElement classes to AbstractDBElement to comply with symfony recommendations.
This commit is contained in:
parent
da72f5b3ec
commit
594c694ee0
62 changed files with 203 additions and 203 deletions
|
@ -25,7 +25,7 @@ declare(strict_types=1);
|
|||
namespace App\Command;
|
||||
|
||||
use App\Entity\Attachments\AttachmentType;
|
||||
use App\Entity\Base\NamedDBElement;
|
||||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Entity\Devices\Device;
|
||||
use App\Entity\Parts\Category;
|
||||
use App\Entity\Parts\Manufacturer;
|
||||
|
@ -134,7 +134,7 @@ class ConvertBBCodeCommand extends Command
|
|||
|
||||
//In verbose mode print the names of the entities
|
||||
foreach ($results as $result) {
|
||||
/** @var NamedDBElement $result */
|
||||
/** @var AbstractNamedDBElement $result */
|
||||
$io->writeln(
|
||||
'Convert entity: '.$result->getName().' ('.$result->getIDString().')',
|
||||
OutputInterface::VERBOSITY_VERBOSE
|
||||
|
|
|
@ -24,7 +24,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Command;
|
||||
|
||||
use App\Entity\Base\NamedDBElement;
|
||||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Entity\LogSystem\AbstractLogEntry;
|
||||
use App\Services\ElementTypeNameGenerator;
|
||||
use App\Services\LogSystem\LogEntryExtraFormatter;
|
||||
|
@ -133,7 +133,7 @@ class ShowEventLogCommand extends Command
|
|||
{
|
||||
$target = $this->repo->getTargetElement($entry);
|
||||
$target_name = '';
|
||||
if ($target instanceof NamedDBElement) {
|
||||
if ($target instanceof AbstractNamedDBElement) {
|
||||
$target_name = $target->getName().' <info>('.$target->getID().')</info>';
|
||||
} elseif ($entry->getTargetID()) {
|
||||
$target_name = '<info>('.$entry->getTargetID().')</info>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue