Jake Vanderwerf
4 days ago 0afb2c0046b55c123eafb4ab9ee77efa68d12463
base/SchemaHelper.php
@@ -125,6 +125,7 @@
         default => [],
      };
      $result = apply_filters(BASE.ucfirst($type).ucfirst($format).'Default', $defaults);
      if ($format === 'reference' && empty($result)) {
         $full = self::getDefault($type, 'schema');
@@ -274,6 +275,10 @@
      $className = $config['type'];
      unset($config['type']);
      $class = new $className();
      if (array_key_exists('id', $config)) {
         $class->setId($config['id']);
         unset($config['id']);
      }
      foreach ($config as $property => $value) {