Use proper way of overriding doctrine attributes

In older versions doctrine allowed overriding attributes, by simply redifining them in subclasses. In 2.16 this throws an exception. We now use the proper way using the AttributeOverrides attribute
This commit is contained in:
Jan Böhmer 2023-08-01 15:55:21 +02:00
parent 1a3e5ec705
commit c981476706
3 changed files with 5 additions and 8 deletions

View file

@ -97,7 +97,6 @@ abstract class Attachment extends AbstractNamedDBElement
*/
#[Assert\NotBlank(message: 'validator.attachment.name_not_blank')]
#[Groups(['simple', 'extended', 'full'])]
#[ORM\Column(type: Types::STRING)]
protected string $name = '';
/**