KnpLabs / DoctrineBehaviors

Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior
http://knplabs.com
MIT License
916 stars 299 forks source link

Sluggable Updates every row on every update #723

Open ghost opened 1 year ago

ghost commented 1 year ago

Is there some reason why when I update any entity, Sluggable updates every single row in the DB that has a relationship to the updated Entity? I have a list of products that are associated with customers and I updated a customer without changing any products and there's a entire SQL log of updating the products. Or maybe it's the Timestampable trait?

ghost commented 1 year ago

This appears to be a problem with the Timestamable trait.