From 07b25e58f0338bf060b6b490fa60acf087553132 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 4 Oct 2022 07:35:06 +0200 Subject: [PATCH 1/1] Cleanup --- Entity/Snippet.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Entity/Snippet.php b/Entity/Snippet.php index ee5b262..a764a66 100644 --- a/Entity/Snippet.php +++ b/Entity/Snippet.php @@ -106,9 +106,9 @@ class Snippet { $this->donate = null; $this->link = null; $this->profile = null; + $this->location = null; $this->created = new \DateTime('now'); $this->updated = new \DateTime('now'); - $this->location = null; } /** @@ -430,7 +430,7 @@ class Snippet { /** * {@inheritdoc} */ - public function preUpdate(\Doctrine\ORM\Event\PreUpdateEventArgs $eventArgs) { + public function preUpdate(PreUpdateEventArgs $eventArgs) { //Check that we have an snippet instance if (($snippet = $eventArgs->getEntity()) instanceof Snippet) { //Set updated value -- 2.41.1