Added some simple time travel mechanism for part view.

In the moment it is not possible to show elements that were deleted.
This commit is contained in:
Jan Böhmer 2020-02-16 23:48:57 +01:00
parent a9fd1f9c68
commit 464a487a17
15 changed files with 450 additions and 27 deletions

View file

@ -56,7 +56,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
* "user" = "App\Entity\User"
* })
*/
abstract class AbstractDBElement
abstract class AbstractDBElement implements \JsonSerializable
{
/** @var int|null The Identification number for this part. This value is unique for the element in this table.
* Null if the element is not saved to DB yet.
@ -93,4 +93,9 @@ abstract class AbstractDBElement
* @return string The ID as a string;
*/
abstract public function getIDString(): string;
public function jsonSerialize()
{
return ['@id' => $this->getID()];
}
}