Fixed: [doc generation] fix summary budget

This commit is contained in:
2023-02-07 16:22:26 +01:00
parent 5830c3e177
commit d8af7d455e
2 changed files with 9 additions and 6 deletions

View File

@@ -150,7 +150,7 @@ final class SummaryBudget implements SummaryBudgetInterface
switch ($kind) {
case 'charge':
foreach ($rows as $row) {
$chargeKind = $this->chargeKindRepository->findOneByKind($row['kind_id']);
$chargeKind = $this->chargeKindRepository->find($row['kind_id']);
if (null === $chargeKind) {
throw new RuntimeException('charge kind not found: ' . $row['kind_id']);
@@ -166,7 +166,7 @@ final class SummaryBudget implements SummaryBudgetInterface
case 'resource':
foreach ($rows as $row) {
$resourceKind = $this->resourceKindRepository->findOneByKind($row['kind_id']);
$resourceKind = $this->resourceKindRepository->find($row['kind_id']);
if (null === $resourceKind) {
throw new RuntimeException('charge kind not found: ' . $row['kind_id']);