Issue#1260046#comment-4931008 by chriscalip : first working prototype of hook_entity_presave implementation