[CORE][ENTITY] Allow create'ing will null values

This commit is contained in:
2021-08-03 17:47:25 +00:00
parent 77742c56c3
commit 0b80727769

View File

@@ -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 {