- Affected version
- Latest
Lost some hair and brain cells until I figured out that _postSave() is not the same as post commit. Can we get a real post save event?
Best placed here I guess.
PHP:
diff --git a/src/XF/Mvc/Entity/Entity.php b/src/XF/Mvc/Entity/Entity.php
index 1bc28fa..6602885 100644
--- a/src/XF/Mvc/Entity/Entity.php
+++ b/src/XF/Mvc/Entity/Entity.php
@@ -1176,6 +1176,8 @@ abstract class Entity implements \ArrayAccess
$this->_saveCleanUp($newDbValues);
+ \XF::fire('entity_post_commit', [$this], $this->rootClass);
+
return true;
}
Best placed here I guess.