From 6bcb31e685275f919b3ac8e63ea3e31e8bd60500 Mon Sep 17 00:00:00 2001 From: Michael Miscampbell Date: Sat, 2 Dec 2017 00:20:37 +0000 Subject: [PATCH] Fix for issue with checkModelSchemasIfNecessary where it was using the tempPath rather than the applicationRootPath when creating the cache folder --- src/Schema/SolutionSchema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Schema/SolutionSchema.php b/src/Schema/SolutionSchema.php index eaf1358..0d03c48 100644 --- a/src/Schema/SolutionSchema.php +++ b/src/Schema/SolutionSchema.php @@ -688,7 +688,7 @@ public function getRelationship($modelName, $navigationName) */ public function checkModelSchemasIfNecessary() { - $cachePath = Application::current()->tempPath."/cache/"; + $cachePath = Application::current()->applicationRootPath."/cache/"; if (!file_exists($cachePath."schema-versions")) { mkdir($cachePath."schema-versions", 0777, true);