summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/entity.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/entity.php b/db/entity.php
index 2c6f4f899..5654e1b80 100644
--- a/db/entity.php
+++ b/db/entity.php
@@ -121,7 +121,8 @@ abstract class Entity {
*/
public function fromRow(array $row){
foreach($row as $key => $value){
- $this->$key = $value;
+ $prop = $this->columnToProperty($key);
+ $this->$prop = $value;
}
}