From b6c62996f56f05c0ea65b1f152c0454b1bec12f7 Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Mon, 7 Apr 2025 15:22:45 +0200 Subject: [PATCH] refs #1855. Fixed subnet DTOs clients property --- src/Dto/Output/SubnetOutput.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Dto/Output/SubnetOutput.php b/src/Dto/Output/SubnetOutput.php index 0a9b540..672e6d1 100644 --- a/src/Dto/Output/SubnetOutput.php +++ b/src/Dto/Output/SubnetOutput.php @@ -33,9 +33,6 @@ final class SubnetOutput extends AbstractOutput #[Groups(['subnet:read'])] public ?string $dns = null; - #[Groups(['subnet:read'])] - public array $clients; - #[Groups(['subnet:read'])] public ?bool $synchronized = false; @@ -61,11 +58,6 @@ final class SubnetOutput extends AbstractOutput $this->bootFileName = $subnet->getBootFileName(); $this->synchronized = $subnet->isSynchronized(); $this->serverId = $subnet->getServerId(); - - $this->clients = $subnet->getClients()->map( - fn(Client $client) => new ClientOutput($client) - )->toArray(); - $this->createdAt = $subnet->getCreatedAt(); $this->createdBy = $subnet->getCreatedBy(); }