Skip to content
Snippets Groups Projects
Commit bf57b4bb authored by André Noack's avatar André Noack
Browse files

Resolve #3876 "SORM: Mehrere Aliase auf die gleiche Spalte sind nicht möglich"

Closes #3876

Merge request studip/studip!2730
parent 8a163bf0
No related branches found
No related tags found
No related merge requests found
...@@ -1066,6 +1066,10 @@ class SimpleORMap implements ArrayAccess, Countable, IteratorAggregate ...@@ -1066,6 +1066,10 @@ class SimpleORMap implements ArrayAccess, Countable, IteratorAggregate
} else { } else {
$this->content_db[$field] = $content_db_value; $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[$alias] =& $this->content[$field];
$this->content_db[$alias] =& $this->content_db[$field]; $this->content_db[$alias] =& $this->content_db[$field];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment