From 78a4ea37cb570eac711521351383073faa63dd71 Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Thu, 26 Jan 2023 13:20:22 +0100 Subject: [PATCH] add relation property mapping --- src/Entities/Properties/Property.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Entities/Properties/Property.php b/src/Entities/Properties/Property.php index 6444f97..2ceb17c 100644 --- a/src/Entities/Properties/Property.php +++ b/src/Entities/Properties/Property.php @@ -177,6 +177,7 @@ private static function mapTypeToClass(string $type): string case 'files': case 'formula': case 'rollup': + case 'relation': $class = str_replace('_', '', ucwords($type, '_')); return 'FiveamCode\\LaravelNotionApi\\Entities\\Properties\\'.$class;