Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Thanks for response.
I implemented the EntityChangedInterface and there's hook_update_N (votingapi_update_8305), I added a code to loop over vote entities and set changed as created.
Comments
Comment #2
Kakarotu commentedAdd field changed to vote entity
Comment #3
tr commentedDon't you need to implement EntityChangedInterface ?
Also, you definitely need a hook_update_N() if you propose to change the entity fields.
Comment #4
Kakarotu commentedThanks for response.
I implemented the EntityChangedInterface and there's hook_update_N (votingapi_update_8305), I added a code to loop over vote entities and set changed as created.
Comment #5
tr commentedYou should do the updates in a batch, otherwise this will cause problems similar to #3068504: Update hook exhausts resources
Comment #6
Kakarotu commentedComment #7
Kakarotu commentedFix patch warning and hook_update_N (numbers).
Comment #8
tr commentedNeeds a re-roll and a test of the update function. This needs to go into 4.0.x, and won't be backported.