From 0b807277692a84d0744f5347cf3a8f274db20765 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Tue, 3 Aug 2021 17:47:25 +0000 Subject: [PATCH] [CORE][ENTITY] Allow create'ing will null values --- src/Core/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Entity.php b/src/Core/Entity.php index 0b93f70e34..b5303dbebf 100644 --- a/src/Core/Entity.php +++ b/src/Core/Entity.php @@ -62,7 +62,7 @@ abstract class Entity } foreach ($args as $prop => $val) { - if (property_exists($class, $prop) && $val != null) { + if (property_exists($class, $prop)) { $set = 'set' . Formatting::snakeCaseToCamelCase($prop); $obj->{$set}($val); } else {