Skip to content

Commit

Permalink
Update OCP
Browse files Browse the repository at this point in the history
  • Loading branch information
nextcloud-command committed Sep 18, 2024
1 parent a26b4e1 commit ca90c24
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions OCP/AppFramework/Db/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ public static function fromRow(array $row): static {
$instance = new static();

foreach ($row as $key => $value) {
$prop = ucfirst($instance->columnToProperty($key));
$setter = 'set' . $prop;
$instance->$setter($value);
$prop = $instance->columnToProperty($key);
$instance->setter($prop, [$value]);
}

$instance->resetUpdatedFields();
Expand Down

0 comments on commit ca90c24

Please sign in to comment.