diff --git a/lib/Db/RowCellSuper.php b/lib/Db/RowCellSuper.php index 10a6186cd..1f7531abb 100644 --- a/lib/Db/RowCellSuper.php +++ b/lib/Db/RowCellSuper.php @@ -45,9 +45,9 @@ public static function fromRowData(array $row): RowCellSuper { $instance = new static(); foreach ($row as $key => $value) { - $prop = ucfirst($instance->columnToProperty($key)); - $setter = 'set' . $prop; - if (method_exists($instance, $setter)) { + $property = $instance->columnToProperty($key); + $setter = 'set' . ucfirst($property);; + if (property_exists($instance, $property)) { $instance->$setter($value); } }