- Some more work done to allow more flexibility for other plugins

This commit is contained in:
mcndave committed 2021-03-24 13:48:09 +00:00
1 parent 3905047111
commit 317d62ceaa
5 files changed
+7 -6

No files matched your search

+2 -2
View File
@@ -170,9 +170,9 @@ class EntityResolver {
return $table;
}
public function databaseName() : string
public function databaseName() : ? string
{
return $this->tableAnnotation(false)->database ?? $this->databaseAdapter()->adapter()->database;
return $this->tableAnnotation(false)->database ?? $this->databaseAdapter()->adapter()->database ?? null;
}
public function sqlAdapter() : \Ulmus\ConnectionAdapter