Bubble up modification date

Hi.
Is there a mechanism to update “updated” field of a tree structure up to the root when a leaf/branch gets modified? As far as my test show, this is not the case.
I know i can do it by hand through event handlers, but i would like to avoid duplicate code.

Thanks.

Hello @IO_libre

No, there is no such built-in mechanism since it is not generic functionality.

Regards,
Daniil

1 Like

Thanks. Now i know what i have to do.

In fact it depends on your task.

What a mysterious answer…
Let me enhance my initial question. My goal is to know if a structure in a leaf or branch changed, but only looking at root. Upon a modification, i would have a callback get to the root and change its date and persist it. I would have loved to have an option to cascade modification up to root when i persist an entity but doing it myself is not that cumbersome anyway.
Do you have better option?