refs #1855. Fixed subnet DTOs clients property
testing/ogcore-api/pipeline/head There was a failure building this commit Details

pull/27/head
Manuel Aranda Rosales 2025-04-07 15:22:45 +02:00
parent beeda955ef
commit b6c62996f5
1 changed files with 0 additions and 8 deletions

View File

@ -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();
}