diff options
| author | André Noack <noack@data-quest.de> | 2024-03-25 14:50:15 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2024-03-25 18:22:53 +0100 |
| commit | 4eaed34561020ad4eee19fbe7ad5da25868cda7c (patch) | |
| tree | 5a71d71e568d9b4808b8e84d362492f8f682d7f2 | |
| parent | 83dc24c10b7a871d5cddde324599945be17fc93d (diff) | |
Resolve #3876 "SORM: Mehrere Aliase auf die gleiche Spalte sind nicht möglich"
Closes #3876
Merge request studip/studip!2730
| -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 838a9f6..acc7a3b 100644 --- a/lib/models/SimpleORMap.class.php +++ b/lib/models/SimpleORMap.class.php @@ -1007,6 +1007,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]; } |
