Skip to content

unique constraint " name + locale " #61

@rsereir

Description

@rsereir

hello !

i try to add unique constraint on my translations with name + locale fields to not have duplications on my translation entities but when i try to remplace my translations collection of my translatable entity without any modifications, my constraint is trigged because doctrine try to add new translations ( instead of update existing ).

I analyse the unique constraint validator of symfony and i see i loss my id on translations objects when valid is called. someone have any idea ?

Rédoine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions