X Tutup
The Wayback Machine - https://web.archive.org/web/20201011090148/https://github.com/api-platform/api-platform/issues/1615
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

handling an exception #1615

Open
lamb0tiana opened this issue Aug 8, 2020 · 0 comments
Open

handling an exception #1615

lamb0tiana opened this issue Aug 8, 2020 · 0 comments

Comments

@lamb0tiana
Copy link

@lamb0tiana lamb0tiana commented Aug 8, 2020

API Platform version(s) affected: 2.5.6

Description
just did what written here, I got an error like php.CRITICAL: Error: Uncaught ApiPlatform\Core\Exception\InvalidArgumentException:

How to reproduce
I have a model relationnal which set article and category, so I wanna set that by passing expressly an other IRI ressource like user and hope handle that on the event here

So what query expect is POST { "book": "/api/article/{id}", "author" : "/api/category/{id} }
and I want is to handle the error with an invalid IRI like POST { "book": "/api/article/{id}", "author" : "/api/user/{id} }

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.
X Tutup