Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
From the docs for hook_entity_presave():
You can get the original entity object from $entity->original when it is an update of the entity.
I don't think ECK entities provide the original entity when updating.
Comments
Comment #2
imclean CreditAttribution: imclean commentedComment #3
rshafakian CreditAttribution: rshafakian as a volunteer commentedDid a fresh install of drupal and ECK. Created a custom module that implemented mymodule_entity_presave() that just spit out $entity->original. Created an entity through ECK and saw the output of $entity->original. Seems to be working.
I'm going to mark this closed, but if you still have this issue please provide details steps so we can reproduce this.