> 1. Is this reasonable behaviour?

This is a graph event for sure. So it makes sense on the object side of the ORM 
(and it doesn't on DB side).

> 2. What do we think about a switch to turn this off or some additional 
> properties when adding listeners to modify this behaviour?

I haven't given it much thought, but I wonder if the answer is to separate 
"object" and "db" events from each other.

Andrus

> On Feb 28, 2019, at 5:55 PM, Aristedes Maniatis <a...@maniatis.org> wrote:
> 
> When you create a new Painting record and link it to an existing Artist 
> record, that Artist receives update lifecycle events, even though no actual 
> fields are changed in the database on that record.
> 
> I think this can often be unexpected and causes side effects you don't want 
> (eg when trying to create audit logs).
> 
> 
> 1. Is this reasonable behaviour?
> 
> 2. What do we think about a switch to turn this off or some additional 
> properties when adding listeners to modify this behaviour?
> 
> 
> Cheers
> 
> Ari
> 

Reply via email to