Skip to content

Commit

Permalink
Remove googleAccount from cascaded loading
Browse files Browse the repository at this point in the history
  • Loading branch information
vokomarov committed Sep 1, 2024
1 parent d5b2799 commit 132e7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Database/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 132e7f9

Please sign in to comment.