[CORE][ENTITY] Allow create'ing will null values
This commit is contained in:
parent
77742c56c3
commit
0b80727769
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user