G
G
grabbee2020-10-21 20:19:02
symfony
grabbee, 2020-10-21 20:19:02

When to check uniqueness?

There is an api-platform bundle - it allows you to create an entity with one POST request. Only it is not clear how to check the uniqueness of an entity. At repeated POST it spits out 500 - type is already. But it is correct to process an error that at least 400 was. How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BoShurik, 2020-10-21
@grabbee

https://symfony.com/doc/current/reference/constrai...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question