Ver Fonte

various fixes

Olivier Massot há 2 anos atrás
pai
commit
d6af3b6f0f

+ 2 - 2
src/Entity/Message/AbstractMessage.php

@@ -23,7 +23,7 @@ abstract class AbstractMessage
     protected ?int $id = null;
 
     #[ORM\Column(type: 'string', unique: true)]
-    protected ?string $uuid = null;
+    protected ?UuidInterface $uuid = null;
 
     #[ORM\ManyToOne]
     #[ORM\JoinColumn(nullable: true)]
@@ -48,7 +48,7 @@ abstract class AbstractMessage
         return $this->id;
     }
 
-    public function getUuid(): ?string
+    public function getUuid(): ?UuidInterface
     {
         return $this->uuid;
     }

+ 0 - 0
src/Service/OnChange/Organization/OnSubdomainChange.php


+ 3 - 3
src/State/Provider/Cotisation/CotisationProvider.php

@@ -28,10 +28,10 @@ final class CotisationProvider implements ProviderInterface
      */
     public function provide(Operation $operation, array $uriVariables = [], array $context = []): ?Cotisation
     {
-        if($operation instanceof GetCollection) {
+        if ($operation instanceof GetCollection) {
             throw new RuntimeException('not supported', 500);
         }
 
-        return $this->cotisationCreator->getCotisation($uriVariables['id']);
+        return $this->cotisationCreator->getCotisation($uriVariables['organizationId']);
     }
-}
+}