-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Hello ,
my problem it's with the validation of the fields of my entity.
Example:
in my class
/**
* @ORM \ Entity ()
* @UniqueEntity (fields = {"locale", "title"})
**/
class CategoryTranslation extends AbstractTranslationi used the UniqueEntity annotation to prevent using the same word more two times with same local value, with my POST requests there are not problem but when I try to use PUT requests
the bundle does not UPDATE the data, it removes the records to insert new values so I get this error :
"detail": "translations [fr] .locale: This value is already used."
when I send this json to my endpoint:
{
"translations": [
{
"title": "natures",
"locale": "fr"
},
{
"title": "nature",
"locale": "en"
}
]
}someone can give any hints ?
thank you in advance
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed