diff --git a/src/Server/Data/DataObject.php b/src/Server/Data/DataObject.php index 2e2915c..5d511ae 100644 --- a/src/Server/Data/DataObject.php +++ b/src/Server/Data/DataObject.php @@ -92,6 +92,10 @@ private static function missingCreationAttributes(array $data, $serializer) $mapping = $serializer->getTransformer()->getMappingByAlias($data[JsonApiTransformer::TYPE_KEY]); + if (null === $mapping) { + return []; + } + $properties = str_replace( array_keys($mapping->getAliasedProperties()), array_values($mapping->getAliasedProperties()),