Log when elements are created, edited or removed.

This commit is contained in:
Jan Böhmer 2020-02-02 21:24:29 +01:00
parent 9f5a4ddf95
commit eb071b1780
7 changed files with 213 additions and 0 deletions

View file

@ -24,6 +24,7 @@ declare(strict_types=1);
namespace App\Entity\LogSystem;
use App\Entity\Base\AbstractDBElement;
use Doctrine\ORM\Mapping as ORM;
/**
@ -33,6 +34,14 @@ class ElementEditedLogEntry extends AbstractLogEntry
{
protected $typeString = 'element_edited';
public function __construct(AbstractDBElement $changed_element)
{
parent::__construct();
$this->level = self::LEVEL_INFO;
$this->setTargetElement($changed_element);
}
/**
* Returns the message associated with this edit change.
*