mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 18:03:37 +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
|
@ -24,7 +24,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\Base\NamedDBElement;
|
||||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Helpers\Trees\TreeViewNode;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
|
||||
|
@ -42,7 +42,7 @@ class NamedDBElementRepository extends EntityRepository
|
|||
|
||||
$entities = $this->findBy([], ['name' => 'ASC']);
|
||||
foreach ($entities as $entity) {
|
||||
/** @var NamedDBElement $entity */
|
||||
/** @var AbstractNamedDBElement $entity */
|
||||
$node = new TreeViewNode($entity->getName(), null, null);
|
||||
$node->setId($entity->getID());
|
||||
$result[] = $node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue