diff options
| author | André Noack <noack@data-quest.de> | 2024-03-25 14:50:15 +0000 |
|---|---|---|
| committer | André Noack <noack@data-quest.de> | 2024-03-25 14:50:15 +0000 |
| commit | bf57b4bbb8f84a9c49f94c1de866e0e07cf05050 (patch) | |
| tree | cee644561c20318341b8a3e2e7de6a803e4e4b8b /lib/models/SimpleORMap.class.php | |
| parent | 8a163bf036ed16e41665c908a6d2526fe05b84b7 (diff) | |
Resolve #3876 "SORM: Mehrere Aliase auf die gleiche Spalte sind nicht möglich"
Closes #3876
Merge request studip/studip!2730
Diffstat (limited to 'lib/models/SimpleORMap.class.php')
| -rw-r--r-- | lib/models/SimpleORMap.class.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/models/SimpleORMap.class.php b/lib/models/SimpleORMap.class.php index 8f951b4..4a0caa3 100644 --- a/lib/models/SimpleORMap.class.php +++ b/lib/models/SimpleORMap.class.php @@ -1066,6 +1066,10 @@ class SimpleORMap implements ArrayAccess, Countable, IteratorAggregate } else { $this->content_db[$field] = $content_db_value; } + } + } + foreach ($this->alias_fields() as $alias => $field) { + if (isset($this->db_fields()[$field])) { $this->content[$alias] =& $this->content[$field]; $this->content_db[$alias] =& $this->content_db[$field]; } |
