File tree 1 file changed +1
-12
lines changed
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,6 @@ trait Inheritance
14
14
*/
15
15
public static $ inheritanceColumn = 'type ' ;
16
16
17
- /**
18
- * Defines the type name for use with single table inheritance.
19
- *
20
- * @var mixed
21
- */
22
- public static $ inheritanceType ;
23
-
24
17
/**
25
18
* Create a new Eloquent model instance.
26
19
*
@@ -79,10 +72,6 @@ protected static function isRootModel()
79
72
*/
80
73
protected static function getInheritanceType ()
81
74
{
82
- if (isset (static ::$ inheritanceType )) {
83
- return static ::$ inheritanceType ;
84
- }
85
-
86
75
$ class = static ::class;
87
76
$ flippedMap = array_flip (static ::$ inheritanceMap ?? []);
88
77
@@ -92,7 +81,7 @@ protected static function getInheritanceType()
92
81
$ type = $ class ;
93
82
}
94
83
95
- return static :: $ inheritanceType = $ type ;
84
+ return $ type ;
96
85
}
97
86
98
87
/**
You can’t perform that action at this time.
0 commit comments