Fixed some inspection issues

This commit is contained in:
Jan Böhmer 2024-03-03 19:57:31 +01:00
parent 33475dca66
commit 42e604245c
85 changed files with 272 additions and 291 deletions

View file

@ -85,7 +85,7 @@ class LabelOptions
/** @var LabelProcessMode The mode that will be used to interpret the lines
*/
#[ORM\Column(type: Types::STRING, enumType: LabelProcessMode::class, name: 'lines_mode')]
#[ORM\Column(name: 'lines_mode', type: Types::STRING, enumType: LabelProcessMode::class)]
protected LabelProcessMode $process_mode = LabelProcessMode::PLACEHOLDER;
/**

View file

@ -66,7 +66,7 @@ class LabelProfile extends AttachmentContainingDBElement
/**
* @var Collection<int, LabelAttachment>
*/
#[ORM\OneToMany(targetEntity: LabelAttachment::class, mappedBy: 'element', cascade: ['persist', 'remove'], orphanRemoval: true)]
#[ORM\OneToMany(mappedBy: 'element', targetEntity: LabelAttachment::class, cascade: ['persist', 'remove'], orphanRemoval: true)]
#[ORM\OrderBy(['name' => 'ASC'])]
protected Collection $attachments;