[DB][FKEY] Temporarily disable foreign key mapping, as there seems to be a bug in doctrine, which is under investigation

This commit is contained in:
Hugo Sales 2021-04-11 18:32:28 +00:00
parent faa362e2e2
commit e2e561e663
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ class SchemaDefDriver extends StaticPHPDriver implements CompilerPassInterface
}
}
if ($opts['foreign key'] ?? false) {
if (false && $opts['foreign key'] ?? false) {
foreach (['target', 'multiplicity'] as $f) {
if (!isset($opts[$f])) {
throw new \Exception("{$class_name}.{$name} doesn't have the required field `{$f}`");

View File

@ -91,7 +91,7 @@ abstract class Common
public static function userNickname(): ?string
{
self::ensureLoggedIn()->getNickname();
return self::ensureLoggedIn()->getNickname();
}
public static function ensureLoggedIn(): LocalUser