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

This commit is contained in:
Hugo Sales 2021-08-03 17:47:25 +00:00
parent 9077403f65
commit f5f11b6e54
Signed by untrusted user: 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 {