From 132e7f91a07bae14374cf53c6cd29400440417b0 Mon Sep 17 00:00:00 2001 From: vokomarov Date: Sun, 1 Sep 2024 15:01:14 +0300 Subject: [PATCH] Remove googleAccount from cascaded loading --- app/src/Database/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Database/User.php b/app/src/Database/User.php index 58f1496..85f91bc 100644 --- a/app/src/Database/User.php +++ b/app/src/Database/User.php @@ -64,7 +64,7 @@ class User implements PasswordContainerInterface #[ORM\Relation\BelongsTo(target: Currency::class, innerKey: 'default_currency_code', cascade: true, load: 'eager')] private Currency $defaultCurrency; - #[ORM\Relation\HasOne(target: GoogleAccount::class, outerKey: 'user_id', nullable: true, cascade: true)] + #[ORM\Relation\HasOne(target: GoogleAccount::class, outerKey: 'user_id', nullable: true, cascade: false)] public GoogleAccount|null $googleAccount = null; #[ORM\Column(type: 'json', name: 'options', typecast: JsonTypecast::RULE)]