Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace GeneaLabs\LaravelModelCaching; |
||
16 | public function getRelation($name) |
||
17 | { |
||
18 | $relation = parent::getRelation($name); |
||
|
|||
19 | |||
20 | if (! $this->isCachable() |
||
21 | && is_a($relation->getQuery(), self::class) |
||
22 | ) { |
||
23 | $relation->getQuery()->disableModelCaching(); |
||
24 | } |
||
25 | |||
26 | return $relation; |
||
27 | } |
||
29 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.