diff --git a/src/Entity/Attachments/AssemblyAttachment.php b/src/Entity/Attachments/AssemblyAttachment.php index bb9a11c8..c0c75c18 100644 --- a/src/Entity/Attachments/AssemblyAttachment.php +++ b/src/Entity/Attachments/AssemblyAttachment.php @@ -33,7 +33,6 @@ use Symfony\Component\Serializer\Attribute\Context; * @extends Attachment */ #[UniqueEntity(['name', 'attachment_type', 'element'])] -#[UniqueEntity(['name', 'attachment_type', 'element'])] #[ORM\Entity] class AssemblyAttachment extends Attachment { diff --git a/src/Entity/Parts/PartCustomState.php b/src/Entity/Parts/PartCustomState.php index ab0941f3..136ff984 100644 --- a/src/Entity/Parts/PartCustomState.php +++ b/src/Entity/Parts/PartCustomState.php @@ -104,7 +104,7 @@ class PartCustomState extends AbstractPartsContainingDBElement #[Groups(['part_custom_state:read', 'part_custom_state:write'])] protected ?Attachment $master_picture_attachment = null; - /** @var Collection + /** @var Collection */ #[Assert\Valid] #[ORM\OneToMany(mappedBy: 'element', targetEntity: PartCustomStateParameter::class, cascade: ['persist', 'remove'], orphanRemoval: true)] diff --git a/src/Form/Filters/LogFilterType.php b/src/Form/Filters/LogFilterType.php index 4fb5bc49..dd4e1cdf 100644 --- a/src/Form/Filters/LogFilterType.php +++ b/src/Form/Filters/LogFilterType.php @@ -132,6 +132,7 @@ class LogFilterType extends AbstractType LogTargetType::PART_ASSOCIATION => 'part_association.label', LogTargetType::BULK_INFO_PROVIDER_IMPORT_JOB => 'bulk_info_provider_import_job.label', LogTargetType::BULK_INFO_PROVIDER_IMPORT_JOB_PART => 'bulk_info_provider_import_job_part.label', + LogTargetType::PART_CUSTOM_STATE => 'part_custom_state.label', }, ]); diff --git a/src/Twig/AssemblyTwigExtension.php b/src/Twig/AssemblyTwigExtension.php deleted file mode 100644 index 2f5cff80..00000000 --- a/src/Twig/AssemblyTwigExtension.php +++ /dev/null @@ -1,30 +0,0 @@ -getProject() !== null) { - return true; - } - } - return false; - } -}