|
@@ -102,7 +102,7 @@ discard block |
|
|
block discarded – undo |
|
102
|
102
|
$junctionTablesKey = $this->cachePrefix.'_junctiontables_'.($ignoreReferencedTables ? 'true' : 'false'); |
|
103
|
103
|
$junctionTables = $this->cache->fetch($junctionTablesKey); |
|
104
|
104
|
if ($junctionTables === false) { |
|
105
|
|
- $junctionTables = array_filter($this->getSchema()->getTables(), function (Table $table) use ($ignoreReferencedTables) { |
|
|
105
|
+ $junctionTables = array_filter($this->getSchema()->getTables(), function(Table $table) use ($ignoreReferencedTables) { |
|
106
|
106
|
return $this->isJunctionTable($table, $ignoreReferencedTables); |
|
107
|
107
|
}); |
|
108
|
108
|
$this->cache->save($junctionTablesKey, $junctionTables); |
|
@@ -213,7 +213,7 @@ discard block |
|
|
block discarded – undo |
|
213
|
213
|
*/ |
|
214
|
214
|
public function getShortestPath($fromTable, $toTable) |
|
215
|
215
|
{ |
|
216
|
|
- return $this->fromCache($this->cachePrefix.'_shortest_'.$fromTable.'```'.$toTable, function () use ($fromTable, $toTable) { |
|
|
216
|
+ return $this->fromCache($this->cachePrefix.'_shortest_'.$fromTable.'```'.$toTable, function() use ($fromTable, $toTable) { |
|
217
|
217
|
return $this->getShortestPathWithoutCache($fromTable, $toTable); |
|
218
|
218
|
}); |
|
219
|
219
|
} |
|
@@ -530,7 +530,7 @@ discard block |
|
|
block discarded – undo |
|
530
|
530
|
*/ |
|
531
|
531
|
public function getParentRelationship($tableName) |
|
532
|
532
|
{ |
|
533
|
|
- return $this->fromCache($this->cachePrefix.'_parent_'.$tableName, function () use ($tableName) { |
|
|
533
|
+ return $this->fromCache($this->cachePrefix.'_parent_'.$tableName, function() use ($tableName) { |
|
534
|
534
|
return $this->getParentRelationshipWithoutCache($tableName); |
|
535
|
535
|
}); |
|
536
|
536
|
} |
|
@@ -567,7 +567,7 @@ discard block |
|
|
block discarded – undo |
|
567
|
567
|
*/ |
|
568
|
568
|
public function getChildrenRelationships($tableName) |
|
569
|
569
|
{ |
|
570
|
|
- return $this->fromCache($this->cachePrefix.'_children_'.$tableName, function () use ($tableName) { |
|
|
570
|
+ return $this->fromCache($this->cachePrefix.'_children_'.$tableName, function() use ($tableName) { |
|
571
|
571
|
return $this->getChildrenRelationshipsWithoutCache($tableName); |
|
572
|
572
|
}); |
|
573
|
573
|
} |