We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca3e986 commit 5634e76Copy full SHA for 5634e76
lib/Db/RowCellSuper.php
@@ -45,9 +45,9 @@ public static function fromRowData(array $row): RowCellSuper {
45
$instance = new static();
46
47
foreach ($row as $key => $value) {
48
- $prop = ucfirst($instance->columnToProperty($key));
49
- $setter = 'set' . $prop;
50
- if (method_exists($instance, $setter)) {
+ $property = $instance->columnToProperty($key);
+ $setter = 'set' . ucfirst($property);;
+ if (property_exists($instance, $property)) {
51
$instance->$setter($value);
52
}
53
0 commit comments