Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README-Response stimmt nicht mit der response der AktenAPi überein. #26

Open
srhinow opened this issue Mar 2, 2022 · 1 comment
Open

Comments

@srhinow
Copy link

srhinow commented Mar 2, 2022

Laut der README bekomme ich wenn ich $akte = $response->toArray() gemacht habe per $akte['id'] die id zurück. Bei mir sieht das Array vom Response so aus:

DataPoolService.php on line 80:
array:7 [▼
  "@context" => "/api/contexts/Akte"
  "@id" => "/api/akten"
  "@type" => "hydra:Collection"
  "hydra:member" => array:1 [▶]
  "hydra:totalItems" => 1
  "hydra:view" => array:2 [▶]
  "hydra:search" => array:4 [▶]
]

und eine Ausgabe von $akte['id'] ist folglich null. Auch ein $repsonse->getId() ist laut PHPStorm nicht als Getter vorhanden.

@OskarStark
Copy link
Contributor

Hi @srhinow,

nice catch, PR welcome.

Du findest die Daten im key "hydra:member"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants