You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/TypeScriptifyModel.php
+28-5Lines changed: 28 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,17 @@ final class TypeScriptifyModel {
45
45
/**
46
46
* Whether to include the model's $hidden properties.
47
47
*
48
-
* @var bool $includeHidden
48
+
* @var bool
49
49
*/
50
50
privatebool$includeHidden = false;
51
51
52
+
/**
53
+
* Whether to map the model's foreign keys to interfaces.
54
+
*
55
+
* @var bool
56
+
*/
57
+
privatebool$includeRelations = true;
58
+
52
59
/**
53
60
* @param string $fullyQualifiedModelName The fully qualified model class name.
54
61
* @param ?array<string,string> $convertedModelsMap The map of `fully qualified model name => interface name` definitions this class can use instead of generating its own definitions.
@@ -282,7 +289,7 @@ private function convertForeignKeyToFullyQualifiedModelName(string $attribute):
0 commit comments