feat: Let occ deck:import default to deck json importer
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -138,7 +138,7 @@ class RelationalEntity extends Entity implements \JsonSerializable {
|
||||
|
||||
$attr = lcfirst(substr($methodName, 3));
|
||||
if (array_key_exists($attr, $this->_resolvedProperties) && str_starts_with($methodName, 'set')) {
|
||||
if (!is_scalar($args[0])) {
|
||||
if ($args[0] !== null && !is_scalar($args[0])) {
|
||||
$args[0] = $args[0]['primaryKey'];
|
||||
}
|
||||
parent::setter($attr, $args);
|
||||
|
||||
Reference in New Issue
Block a user