Prevent over-audit-logging on Station entity.

This commit is contained in:
Buster "Silver Eagle" Neece 2022-06-19 17:33:37 -05:00
parent 852d2e4de1
commit 0cfce8c670
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
1 changed files with 8 additions and 3 deletions

View File

@ -349,12 +349,16 @@ class Station implements Stringable, IdentifiableEntityInterface
#[ORM\OneToMany(mappedBy: 'station', targetEntity: StationStreamer::class)]
protected Collection $streamers;
#[ORM\Column(nullable: true)]
#[
ORM\Column(nullable: true),
Attributes\AuditIgnore
]
protected ?int $current_streamer_id = null;
#[
ORM\ManyToOne,
ORM\JoinColumn(name: 'current_streamer_id', referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')
ORM\JoinColumn(name: 'current_streamer_id', referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL'),
Attributes\AuditIgnore
]
protected ?StationStreamer $current_streamer = null;
@ -399,7 +403,8 @@ class Station implements Stringable, IdentifiableEntityInterface
#[
ORM\ManyToOne,
ORM\JoinColumn(name: 'current_song_id', referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')
ORM\JoinColumn(name: 'current_song_id', referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL'),
Attributes\AuditIgnore
]
protected ?SongHistory $current_song = null;