We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09459e0 commit e847050Copy full SHA for e847050
src/Database/Structure.php
@@ -137,7 +137,6 @@ public function rebuild()
137
{
138
$this->structure = $this->loadStructure();
139
$this->cache->save('structure', $this->structure);
140
- $this->isRebuilt = TRUE;
141
}
142
143
@@ -192,6 +191,8 @@ public function loadStructure()
192
191
193
194
+ $this->isRebuilt = TRUE;
195
+
196
return $structure;
197
198
@@ -241,6 +242,11 @@ protected function resolveFQTableName($table)
241
242
return $this->structure['aliases'][$name];
243
244
245
+ if (!$this->isRebuilt()) {
246
+ $this->rebuild();
247
+ return $this->resolveFQTableName($table);
248
+ }
249
250
throw new Nette\InvalidArgumentException("Table '$name' does not exist.");
251
252
0 commit comments