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

This commit is contained in:
Hugo Sales 2021-08-03 17:47:25 +00:00
parent 77742c56c3
commit 0b80727769
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

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 {