mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +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
|
@ -26,7 +26,7 @@ namespace App\Entity\LogSystem;
|
|||
|
||||
use App\Entity\Attachments\Attachment;
|
||||
use App\Entity\Attachments\AttachmentType;
|
||||
use App\Entity\Base\DBElement;
|
||||
use App\Entity\Base\AbstractDBElement;
|
||||
use App\Entity\Devices\Device;
|
||||
use App\Entity\Devices\DevicePart;
|
||||
use App\Entity\Parts\Category;
|
||||
|
@ -61,7 +61,7 @@ use Psr\Log\LogLevel;
|
|||
* 10 = "DatabaseUpdatedLogEntry"
|
||||
* })
|
||||
*/
|
||||
abstract class AbstractLogEntry extends DBElement
|
||||
abstract class AbstractLogEntry extends AbstractDBElement
|
||||
{
|
||||
public const LEVEL_EMERGENCY = 0;
|
||||
public const LEVEL_ALERT = 1;
|
||||
|
@ -311,11 +311,11 @@ abstract class AbstractLogEntry extends DBElement
|
|||
/**
|
||||
* Sets the target element associated with this element.
|
||||
*
|
||||
* @param DBElement $element The element that should be associated with this element.
|
||||
* @param AbstractDBElement $element The element that should be associated with this element.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTargetElement(?DBElement $element): self
|
||||
public function setTargetElement(?AbstractDBElement $element): self
|
||||
{
|
||||
if (null === $element) {
|
||||
$this->target_id = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue