Skip to content

clarify translation event #569

@dbu

Description

@dbu

@ElectricMaxxx said:

my intention was to stay close to the normal events. So as an PostUpdate is fired after the flush
(when it is really really done) all Post*Translation Events should do same, or?
On the other hand a translation binding stays a little bit outside the persistence lifecycle, but is really > done after flush too.

the question that arose was: what exactly should the event tell? bindTranslation was called by the user? or translated fields changed (this would be weird, as that is part of the document changed, and i don't see a semantical difference between translated and untranslated fields in that regard)? i think what makes most sense is an event when a new translation was created or is removed. regardless of whether it was explicitly created or implicitly when a new translated document is first persisted.

Will have a look at the names and orders of translation events at the weekend again. Maybe we
can make it more clear (in the docs too). Change was done in this version right? BC-Break?

thanks. i think we need to be more clear what exactly the event signifies, re-thinking what a reasonable use case is. and as we added this in a previous RC of this version we can still fix it until we release the stable version.

see also the (now hidden) discussions in #556

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions