Skip to content

editing object after increment 'Translation' id #54

@adamgyongyosi

Description

@adamgyongyosi

Hello

I have a big problem

cant detect Translation object edit event because

run: insert event

image

why insert if already exist?

can i change this update?

symfony: 5.4.3
api-platform: 2.6.8

request body

{
    "@context": "/contexts/EmailTemplate",
    "@id": "/email_templates/1",
    "@type": "EmailTemplate",
    "id": 1,
    "key": "confirmation",
    "module": "admin",
    "translations": {
        "hu": {
            "@type": "EmailTemplateTranslation",
            "@id": "_:3955",
            "id": 29,
            "locale": "hu",
            "name": "email_template.confirmation.name",
            "subject": "email_template.confirmation.subject",
            "content": "<p>email_template.confirmation.content33333</p>",
            "tags": []
        },
        "en": {
            "@type": "EmailTemplateTranslation",
            "@id": "_:3957",
            "id": 30,
            "locale": "en",
            "name": "email_template.confirmation.name",
            "subject": "email_template.confirmation.subject",
            "content": "email_template.confirmation.content",
            "tags": []
        }
    },
    "name": "email_template.confirmation.name",
    "subject": "email_template.confirmation.subject",
    "content": "<p>email_template.confirmation.content22222</p>"
}

image
image

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