diff --git a/src/CachedBuilder.php b/src/CachedBuilder.php
index <HASH>..<HASH> 100644
--- a/src/CachedBuilder.php
+++ b/src/CachedBuilder.php
@@ -166,24 +166,18 @@ class CachedBuilder extends EloquentBuilder
         return $this->cachedValue(func_get_args(), $cacheKey);
     }
 
-	/**
-	 * Get the relation instance for the given relation name.
-	 * This is overloaded so we can disable model cache on
-	 * relations if parent has disabled model caching.
-	 *
-	 * @param  string  $name
-	 * @return \Illuminate\Database\Eloquent\Relations\Relation
-	 */
-	public function getRelation($name)
-	{
-		$relation = parent::getRelation($name);
-
-		if(!$this->isCachable() && is_a($relation->getQuery(), self::class)){
-			$relation->getQuery()->disableModelCaching();
-		}
-
-		return $relation;
-	}
+    public function getRelation($name)
+    {
+        $relation = parent::getRelation($name);
+
+        if (! $this->isCachable()
+            && is_a($relation->getQuery(), self::class)
+        ) {
+            $relation->getQuery()->disableModelCaching();
+        }
+
+        return $relation;
+    }
 
     protected function recursiveImplodeWithKey(array $items, string $glue = "_") : string
     {
Disable queries on relations if model is disabled