You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever an entity has a Gedmo Timestampable field, if a simple findBy (SELECT) is made on this entity, Gedmo will trigger the prePersist event, even if there's no insert / update made on this entity.
To Reproduce
Create an Entity and add a createdAt + updatedAt field with the associated PHP Attributes for the Gedmo Timestampable
Create an EventListener with the prePersist event listened
Use a simple findBy on the Entity's Repository
Expected behavior
The EventListener is not triggered by the findBy method.
Actual behaivour
The EventListener is triggered by the findBy method.
Additional context
Tested with Symfony 6.4 and PHP 8.3 on the latest version of this bundle + latest version of gedmo.
The text was updated successfully, but these errors were encountered:
Describe the bug
Whenever an entity has a Gedmo Timestampable field, if a simple
findBy
(SELECT) is made on this entity, Gedmo will trigger theprePersist
event, even if there's no insert / update made on this entity.To Reproduce
createdAt
+updatedAt
field with the associated PHP Attributes for the Gedmo TimestampableprePersist
event listenedfindBy
on the Entity's RepositoryExpected behavior
The EventListener is not triggered by the
findBy
method.Actual behaivour
The EventListener is triggered by the
findBy
method.Additional context
Tested with Symfony 6.4 and PHP 8.3 on the latest version of this bundle + latest version of gedmo.
The text was updated successfully, but these errors were encountered: