aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/SimpleORMap.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/classes/SimpleORMap.php')
-rw-r--r--lib/classes/SimpleORMap.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/classes/SimpleORMap.php b/lib/classes/SimpleORMap.php
index d2cbcdc..f3993c2 100644
--- a/lib/classes/SimpleORMap.php
+++ b/lib/classes/SimpleORMap.php
@@ -2233,6 +2233,14 @@ class SimpleORMap implements ArrayAccess, Countable, IteratorAggregate
if ($this->content[$field] === null || $this->content_db[$field] === null) {
return $this->content[$field] !== $this->content_db[$field];
} else if ($this->content[$field] instanceof I18NString || $this->content_db[$field] instanceof I18NString) {
+ // Trigger loading of translations
+ if ($this->content[$field] instanceof I18NString) {
+ $this->content[$field]->toArray();
+ }
+ if ($this->content_db[$field] instanceof I18NString) {
+ $this->content_db[$field]->toArray();
+ }
+
return $this->content[$field] != $this->content_db[$field];
} else {
return (string)$this->content[$field] !== (string)$this->content_db[$field];