See https://www.woltlab.com/community/thread/301627-when-changing-the-reaction-image-the-file-is-not-updated-in-the-dashboard/
use wcf\data\DatabaseObject;
use wcf\data\ITitledObject;
+use wcf\system\reaction\ReactionHandler;
use wcf\system\WCF;
/**
*/
protected static $databaseTableIndexName = 'reactionTypeID';
+ /**
+ * @inheritDoc
+ */
+ public function __wakeup()
+ {
+ $reaction = ReactionHandler::getInstance()->getReactionTypeByID($this->reactionTypeID);
+ if ($reaction) {
+ $this->title = $reaction->title;
+ $this->iconFile = $reaction->iconFile;
+ }
+ }
+
/**
* @inheritDoc
*/