refs #1855. Fixed subnet DTOs clients property
testing/ogcore-api/pipeline/head This commit looks good
Details
testing/ogcore-api/pipeline/head This commit looks good
Details
parent
927677ddc0
commit
1bca31ec5f
|
@ -48,9 +48,6 @@ final class OrganizationalUnitOutput extends AbstractOutput
|
||||||
#[Groups(['organizational-unit:read'])]
|
#[Groups(['organizational-unit:read'])]
|
||||||
public array $children = [];
|
public array $children = [];
|
||||||
|
|
||||||
#[Groups(['organizational-unit:read'])]
|
|
||||||
public array $clients = [];
|
|
||||||
|
|
||||||
#[Groups(['organizational-unit:read', "client:read"])]
|
#[Groups(['organizational-unit:read', "client:read"])]
|
||||||
#[ApiProperty(readableLink: true)]
|
#[ApiProperty(readableLink: true)]
|
||||||
public ?RemoteCalendarOutput $remoteCalendar = null;
|
public ?RemoteCalendarOutput $remoteCalendar = null;
|
||||||
|
@ -96,12 +93,6 @@ final class OrganizationalUnitOutput extends AbstractOutput
|
||||||
)->toArray();
|
)->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($context['groups']) && in_array('organizational-unit:read', $context['groups'])) {
|
|
||||||
$this->clients = $organizationalUnit->getClients()->map(
|
|
||||||
fn(Client $client) => new ClientOutput($client)
|
|
||||||
)->toArray();
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->excludeParentChanges = $organizationalUnit->isExcludeParentChanges();
|
$this->excludeParentChanges = $organizationalUnit->isExcludeParentChanges();
|
||||||
$this->path = $organizationalUnit->getPath();
|
$this->path = $organizationalUnit->getPath();
|
||||||
$this->createdAt = $organizationalUnit->getCreatedAt();
|
$this->createdAt = $organizationalUnit->getCreatedAt();
|
||||||
|
|
Loading…
Reference in New Issue