diff --git a/src/Core/Entity.php b/src/Core/Entity.php index 81c0deef9f..899310faad 100644 --- a/src/Core/Entity.php +++ b/src/Core/Entity.php @@ -63,7 +63,7 @@ abstract class Entity implements \JsonSerializable } foreach ($args as $prop => $val) { - if (property_exists($class, $prop)) { + if (property_exists($obj, $prop)) { $set = 'set' . ucfirst(Formatting::snakeCaseToCamelCase($prop)); $obj->{$set}($val); } else {