forked from GNUsocial/gnu-social
[CORE][ENTITY] Allow create'ing will null values
This commit is contained in:
parent
9077403f65
commit
f5f11b6e54
@ -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