Просмотр исходного кода

fix access::publicationDirector type

Olivier Massot 8 месяцев назад
Родитель
Сommit
4c188ed508
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/Entity/Access/Access.php

+ 2 - 2
src/Entity/Access/Access.php

@@ -177,8 +177,8 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
     private Collection $accessIntangibles;
 
     #[ORM\ManyToOne(inversedBy: 'publicationDirectors')]
-    #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false)]
-    private Parameters $publicationDirector;
+    #[ORM\JoinColumn(referencedColumnName: 'id')]
+    private ?Parameters $publicationDirector;
 
     #[ORM\ManyToOne(inversedBy: 'teachers')]
     #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]