]> Raphaël G. Git Repositories - airbundle/commitdiff
Cleanup
authorRaphaël Gertz <git@rapsys.eu>
Tue, 4 Oct 2022 05:35:06 +0000 (07:35 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 4 Oct 2022 05:35:06 +0000 (07:35 +0200)
Entity/Snippet.php

index ee5b262e78f600007529b2d12b5782463324ec05..a764a6602586c3c121476d77a266f7d41bbc3f8a 100644 (file)
@@ -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