Fixed PHPstan issues

This commit is contained in:
Jan Böhmer 2023-08-28 22:39:29 +02:00
parent 6be55d1837
commit f265b9d19d
5 changed files with 53 additions and 15 deletions

View file

@ -36,9 +36,8 @@ use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
class MeasurementUnitAttachment extends Attachment
{
final public const ALLOWED_ELEMENT_CLASS = MeasurementUnit::class;
/**
* @var Manufacturer|null the element this attachment is associated with
*/
#[ORM\ManyToOne(targetEntity: MeasurementUnit::class, inversedBy: 'attachments')]
#[ORM\JoinColumn(name: 'element_id', nullable: false, onDelete: 'CASCADE')]
protected ?AttachmentContainingDBElement $element = null;