Skip to content
Snippets Groups Projects
Commit 2c55d38b authored by André Noack's avatar André Noack Committed by Jan-Hendrik Willms
Browse files

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

Closes #3876

Merge request studip/studip!2730
parent abb64e68
No related branches found
No related tags found
No related merge requests found
......@@ -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];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment